Extract the specified colour/CLUT value from a given CyberGraphX RastPort
Source position: cybergraphics.pas line 226
function ExtractColor( |
a0arg: pRastPort; |
BitMap: pBitMap; |
Colour: LongWord; |
SrcX: LongWord; |
SrcY: LongWord; |
Width: LongWord; |
Height: LongWord |
):LongWord; |
a0arg |
|
pointer to a CyberGraphX RastPort structure |
BitMap |
|
Planar destination bitmap that has at least a depth of one and the minimum width and height specified. |
Colour |
|
the color that should be extracted in AARRGGBB format for true color rastports or in indexed mode for CLUT rastports (index in BB). |
SrcX |
|
X starting point in the RastPort that should be analyzed |
SrcY |
|
Y starting point in the RastPort that should be analyzed |
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