Unit 'CYBERGRAPHICS' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#morphunits]

ExtractColor

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

Declaration

Source position: cybergraphics.pas line 304

function ExtractColor(

  a0arg: PRastPort;

  BitMap: PBitMap;

  Colour: LongWord;

  SrcX: LongWord;

  SrcY: LongWord;

  Width: LongWord;

  Height: LongWord

):LongWord;

Arguments

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

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