Table of Contents

Class PremultiplyEffect

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

Use this effect to convert an image from unpremultiplied alpha to premultiplied alpha.

The effect replaces each input pixel P = { R, G, B, A } with P' = { R * A, G * A, B * A, A } in the output.

For more information, see Premultiply effect

public sealed class PremultiplyEffect : DeviceEffect<PremultiplyEffect.Props>, ISerializable, IDeviceEffect, IDeviceImage, IDirect2DResource, IFactoryProperty, IDeviceEffectProperties, IInternalImpl, IObjectRef, IIsDisposed, IDisposable
Inheritance
PremultiplyEffect
Implements
Inherited Members
Extension Methods

Constructors

PremultiplyEffect(IDeviceEffectFactory)
PremultiplyEffect(IDeviceEffectFactory, IDeviceImage)