Movatterモバイル変換


[0]ホーム

URL:


Skip to main contentSkip to in-page navigation

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft EdgeMore info about Internet Explorer and Microsoft Edge
Table of contentsExit editor mode

GrayScaleEffect Class

Definition

Namespace:
System.Drawing.Imaging.Effects
Assembly:
System.Drawing.Common.dll
Package:
System.Drawing.Common v10.0.0
Source:
GrayScaleEffect.cs
Source:
GrayScaleEffect.cs
Source:
GrayScaleEffect.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Produces the effect that converts an image to grayscale.

public ref class GrayScaleEffect sealed : System::Drawing::Imaging::Effects::ColorMatrixEffect
public sealed class GrayScaleEffect : System.Drawing.Imaging.Effects.ColorMatrixEffect
type GrayScaleEffect = class    inherit ColorMatrixEffect
Public NotInheritable Class GrayScaleEffectInherits ColorMatrixEffect
Inheritance

Constructors

NameDescription
GrayScaleEffect()

Creates aColorMatrixEffect that converts an image to grayscale.

Properties

NameDescription
Matrix

Gets the color transform matrix.

(Inherited fromColorMatrixEffect)

Methods

NameDescription
Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited fromEffect)
Dispose(Boolean)

Releases the unmanaged resources used by theEffect and optionally releases the managed resources.

(Inherited fromEffect)

Applies to

Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, seeour contributor guide.

Feedback

Was this page helpful?

YesNoNo

Need help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?

In this article

Was this page helpful?

YesNo
NoNeed help with this topic?

Want to try using Ask Learn to clarify or guide you through this topic?

Suggest a fix?