Skip to main content

Module alpha_mask_u8

Module alpha_mask_u8 

Source
Expand description

Alpha masking with clipping support.

Port of agg_alpha_mask_u8.h — provides alpha mask functionality where pixel coverage values are modulated by a grayscale mask buffer.

Structs§

AlphaMaskU8
Alpha mask with bounds-checked access to a rendering buffer.
AmaskNoClipU8
Alpha mask without bounds checking — faster but caller must ensure in-range.
OneComponentMask
Single-component mask: returns the first byte.
RgbToGrayMask
RGB-to-gray mask: weighted sum of R, G, B channels.

Traits§

AlphaMask
Alpha mask interface for coverage modulation.
MaskFunction
Trait for computing a mask value from pixel data.

Type Aliases§

AlphaMaskGray8
Gray8 alpha mask (1 byte per pixel, offset 0).
AlphaMaskRgb24b
RGB24 blue channel mask.
AlphaMaskRgb24g
RGB24 green channel mask.
AlphaMaskRgb24r
RGB24 red channel mask.
AlphaMaskRgba32a
RGBA32 alpha channel mask.
AlphaMaskRgba32b
RGBA32 blue channel mask.
AlphaMaskRgba32g
RGBA32 green channel mask.
AlphaMaskRgba32r
RGBA32 red channel mask.
AmaskNoClipGray8
Gray8 alpha mask, no clipping.
AmaskNoClipRgba32a
RGBA32 alpha channel mask, no clipping.