Unit 'cybergraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

ExtractColor

Extract the specified colour/CLUT value from a given CyberGraphX RastPort

Declaration

Source position: cybergraphics.pas line 183

function ExtractColor(

  RastPort: PRastPort;

  SingleMap: PBitMap;

  Colour: LongWord;

  SX: LongWord;

  SY: LongWord;

  Width: LongWord;

  Height: LongWord

):LongWord;

Arguments

Colour

  

the color that should be extracted in AARRGGBB format for true color rastports or in indexed mode for CLUT rastports (index in BB).

Width

  

Width of the rectangle that should be analyzed

Height

  

Height of the rectangle that should be analyzed

Function result

Returns True (<> 0) if colour could be extracted, False (= 0) if not

Description

Extract the specified colour/CLUT value from a given CyberGraphX RastPort into a single plane bitmap starting at a certain x,y location and using the specified width and height. Use this function if you want to create masks. (V41)

Errors

This call was a no-op in very early revisions of cybergraphics v41


Documentation generated on: 2021-07-30