THotPDF.DecodeLoadedImageColorKeyMask Method

Builds the color-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 contains the color-key /Mask array

Return value

24-bit grayscale bitmap matching the image dimensions where black marks pixels whose samples all fall inside their component ranges and white marks pixels with any component outside its range; nil when the image is not eligible

Usage notes

Related APIs