THotPDF.DecodeLoadedImageColorKeyMask Method

Builds the colour-key mask bitmap for a loaded image whose dictionary carries an array /Mask entry

Declaration

function DecodeLoadedImageColorKeyMask(
  AImageStream: THPDFStreamObject): TBitmap;

Unit

HPDFDoc

Parameters

NamePurpose
AImageStreamLoaded image stream object whose dictionary holds the colour-key /Mask array

Return value

A 24-bit greyscale bitmap of the image's dimensions in which black marks pixels whose samples all fall within their component ranges and white marks pixels with any component outside its range; nil when the image does not qualify

Usage notes

Related APIs