Skip to content

IPixelBufferSource.IsPremultiplied property

Gets whether the RGB channels are already multiplied by alpha; the default is false.

public bool IsPremultiplied { get; }

Consumers must skip their own premultiply step when true; otherwise the data is premultiplied a second time, darkening every semi-transparent pixel (a black halo on alpha-blended edges). The default preserves straight-alpha semantics for sources that have not opted in (PNG decode, raw byte arrays, WriteableBitmap); render-target sources that produce premultiplied output override to true.