Table of Contents

Class GrayscaleEffect2

Namespace
PaintDotNet.Direct2D1.Effects
Assembly
PaintDotNet.Windows.Framework.dll

Similar to GrayscaleEffect, but can also be configured for sRGB or linear gamma. This also necessitates the specification of straight vs. premultiplied alpha.

public sealed class GrayscaleEffect2 : CustomEffect<GrayscaleEffect2.Props>, ISerializable, IDeviceEffect, IDeviceImage, IDirect2DResource, IFactoryProperty, IDeviceEffectProperties, IInternalImpl, IObjectRef, IIsDisposed, IDisposable
Inheritance
GrayscaleEffect2
Implements
Inherited Members

Remarks

Note that this effect calculates the luma for the image's color values, which is different than luminance. See Difference between Luma and Luminance for more information.

Constructors

GrayscaleEffect2(IDeviceEffectFactory)