Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

GrayScaleEffect Class

Definition

Namespace:
System.Drawing.Imaging.Effects
Assembly:
System.Drawing.Common.dll
Package:
System.Drawing.Common v11.0.0-preview.5.26302.115
Source:
GrayScaleEffect.cs
Source:
GrayScaleEffect.cs
Source:
GrayScaleEffect.cs
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 GrayScaleEffect
Inherits ColorMatrixEffect
Inheritance
GrayScaleEffect

Constructors

Name Description
GrayScaleEffect()

Creates a ColorMatrixEffect that converts an image to grayscale.

Properties

Name Description
Matrix

Gets the color transform matrix.

(Inherited from ColorMatrixEffect)

Methods

Name Description
Dispose()

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

(Inherited from Effect)
Dispose(Boolean)

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

(Inherited from Effect)

Applies to


Feedback

Was this page helpful?