Scale the colors value of a rectangular array (V51)
Source position: cybergraphics.pas line 330
function ScalePixelArrayAlpha( |
srcRect: POINTER; |
SrcW: Word; |
SrcH: Word; |
SrcMod: Word; |
a1arg: PRastPort; |
DestX: Word; |
DestY: Word; |
DestW: Word; |
DestH: Word; |
globalAlpha: LongWord |
):LongInt; |
srcRect |
|
pointer to an array of pixels from which to fetch the pixel data. The pixel format is fixed to RECTFMT_ARGB and the alpha 8bit value is used to blend the data into the target |
SrcW |
|
Width of the source rectangle |
SrcH |
|
Height of 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 |
DestW |
|
Width of the destination area |
DestH |
|
Height of the destination area |
globalAlpha |
|
32bit left justified global alpha value, e.g. use $FFFFFFFF for full opacity. This global value is combined with the per pixel alpha of the source rectangle |
Scale the colors 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 (v51)
For each pixel in a rectangular region, scale and blend the color values from a linear alpha array of truecolor values into the bitmap used to describe a particular rastport.
This function should only be used on screens depths > 8 bits.
Uses hardware acceleration on dedicated hardware