Extract the specified colour/CLUT value from a given CyberGraphX RastPort
Source position: cybergraphics.pas line 232
function ExtractColor( |
RastPort: PRastPort; |
SingleMap: PBitMap; |
Colour: LongWord; |
sX: LongWord; |
sY: LongWord; |
Width: LongWord; |
Height: LongWord |
):LongWord; |
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 |
Returns True (<> 0) if colour could be extracted, False (= 0) if not
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)
This call was a no-op in very early revisions of cybergraphics v41