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

WritePixelArray

write the color value of a rectangular array

Declaration

Source position: cybergraphics.pas line 319

function WritePixelArray(

  srcRect: POINTER;

  SrcX: Word;

  SrcY: Word;

  SrcMod: Word;

  a1arg: PRastPort;

  DestX: Word;

  DestY: Word;

  SizeX: Word;

  SizeY: Word;

  SrcFormat: Byte

):LongWord;

Arguments

srcRect

  

pointer to an array of pixels from which to fetch the pixel data. The pixel format is specified in SrcFormat

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

  

Widht of the rectangle that should be transfered

SizeY

  

Height of the rectangle that should be transfered

SrcFormat

  

pixel format in the source rectangle. Currently supported formats are: RECTFMT_RGB, RECTFMT_RGBA, RECTFMT_ARGB, RECTFMT_LUT8, RECTFMT_GREY8

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 RECTFMT_LUT8 can be used on screen depths <= 8 bits. For > 8 bit rastport RECTFMT_LUT8 uses the actual colormap "attached" to the bitmap. If the bitmap is a friend bitmap of a screen bitmap or the screen bitmap itself, it uses the screen's viewport colormap.

Errors

The count value returned is totally wrong.

See also

ReadPixelArray

  

Read the color values of a rectangular array

WriteLUTPixelArray

  

write the color value generated from a given color table (V41)

WritePixelArray

  

write the color value of a rectangular array


Documentation generated on: 2021-07-30