DrawAlphaMask

procedure DrawAlphaMask(img: TIMage32; const mask: TArrayOfByte; color: TColor32 = clBlack32);

Draws onto 'img' polygons corresponding to the alpha values in the supplied unidimensional mask. The mask's length should correspond to the supplied image's width x height.

See Also

DrawBoolMask