Table of Contents

Enum BitmapSourceOpacityMetadata

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

Specifies the opacity metadata for an IBitmapSource when using the BitmapSourceEffect2 effect.

public enum BitmapSourceOpacityMetadata

Fields

Default = 0

The opacity metadata for the effect's output is determined by the pixel format of the bitmap source. For pixel formats that do not have an alpha channel (e.g. Bgr32, Rgb64Half, Rgb128Float), the output will be marked as opaque, which can improve rendering performance.

NotOpaque = 1

The opacity metadata for the effect's output is not marked as opaque. This will still produce correct rendering results if an image is fully opaque, but performance may be lower.

Opaque = 2

The opacity metadata for the effect's output is always marked as opaque. This can improve rendering performance if you are using a pixel format that supports an alpha channel but you know that all pixels in the bitmap are opaque. Using this with a bitmap that does contain pixels with non-opaque pixels can result in incorrect rendering.