TryCreateAlpha(Int32, Boolean, out DecodedImageBuilder) Method

Definition

Assembly Broadside.dll

Creates the alpha plane: one component, the same width and height, at bitsPerComponent.

public bool TryCreateAlpha(int bitsPerComponent, bool premultiplied, scoped out DecodedImageBuilder alpha)

Parameters

bitsPerComponent
Int32

The alpha's bits per component, 1 to 16.

premultiplied
Boolean

Whether the colour samples are premultiplied by it (SMaskInData 2).

alpha
DecodedImageBuilder

The alpha builder, filled like this one and built with it.

Returns

Boolean
false when an alpha plane exists already.

Remarks

ISO 32000-2 §7.4.9, §8.9.5.1 Table 87 (SMaskInData).