Read the color values of a rectangular array
Source position: cybergraphics.pas line 222
function ReadPixelArray( |
dst: Pointer; |
destx: Word; |
desty: Word; |
dstmod: Word; |
rp: PRastPort; |
srcx: Word; |
srcy: Word; |
width: Word; |
height: Word; |
dstformat: Byte |
):LongWord; |
destx |
|
X starting point in the destination rectangle |
desty |
|
Y starting point in the destination rectangle |
srcx |
|
X starting point in the RastPort |
srcy |
|
Y starting point in the RastPort |
number of pixels read
Read the color values 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 to a linear array of color values from the bitmap used to describe a particular rastport.
Attention
This function should only be used on screens depths > 8 bits.
|
write the color value of a rectangular array |
|
|
read the pen number 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. |