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

WritePixelArrayAlpha

Write the color value of a rectangular array

Declaration

Source position: cybergraphics.pas line 323

function WritePixelArrayAlpha(

  srcRect: POINTER;

  SrcX: Word;

  SrcY: Word;

  SrcMod: Word;

  a1arg: PRastPort;

  DestX: Word;

  DestY: Word;

  SizeX: Word;

  SizeY: Word;

  globalAlpha: LongWord

):LongWord;

Arguments

srcRect

  

pointer to an array of pixels from which to fetch the pixel data. The pixel format is always RECTFMT_ARGB

SrcX

  

X starting point in the source rectangle

SrcY

  

Y starting point in the source rectangle

SrcMod

  

The number of bytes per row in the source rectangle.

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

globalAlpha

  

32 bit unsigned left justified fraction (1.0 = $ffffffff)

Function result

Number of pixels plotted

Description

write the color value of a rectangular array of pixels 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 color value from a linear array of color values into the bitmap used to describe a particular rastport.

Attention

Only currently supported pixelformat is RECTFMT_ARGB


Documentation generated on: 2021-07-30