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

FillPixelArray

fill a rectangular area with the supplied ARGB

Declaration

Source position: cybergraphics.pas line 305

function FillPixelArray(

  a1arg: PRastPort;

  DestX: Word;

  DestY: Word;

  SizeX: Word;

  SizeY: Word;

  ARGB: LongWord

):LongWord;

Arguments

a1arg

  

Pointer to a RastPort structure

DestX

  

X starting point in the RastPort

DestY

  

Y starting point in the RastPort

SizeX

  

Width of the rectangle that should be transfered

SizeY

  

Height of the rectangle that should be transfered

ARGB

  

the desired color in AARRGGBB format for true color rastports or in indexed mode for CLUT rastports. Every component uses 8 bits in the supplied longword.

Function result

Count will be set to the number of pixels plotted

Description

fill a rectangular area with the supplied ARGB value starting at a specified x,y location and continuing through to another x,y location within a certain RastPort

For each pixel in a rectangular region, write the supplied color value into the bitmap used to describe a particular rastport.

Attention

This function should only be used on screens depths >8 bits in cybergraphics versions prior v41.

Errors

The returned count value is wrong up to and including v41 of the cybergraphics.library

See also

InvertPixelArray

  

Invert a rectangular area


Documentation generated on: 2021-07-30