Unit 'cybergraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#os4units]

MovePixelArray

move the color values of a rectangular area

Declaration

Source position: cybergraphics.pas line 170

function MovePixelArray(

  SrcX: LongWord;

  SrcY: LongWord;

  RastPort: PRastPort;

  DstX: LongWord;

  DstY: LongWord;

  SizeX: LongWord;

  SizeY: LongWord

):LongWord;

Arguments

SrcX

  

Starting x point in the source rectangle

SrcY

  

Starting y point in the source rectangle

SizeX

  

Width of the rectangle that should be transfered

SizeY

  

Height of the rectangle that should be transfered

Function result

number of pixels moved

Description

move the color values of a rectangular area 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, move the pixel value from a specified source to a specified destination

The blitter can be used to move the data if the bitmap is in display memory. This is why you should use this call.

Errors

The count value returned is totally wrong. This function should only be used on screens depths > 8 bits with cybergraphics versions up to v40.

See also

FillPixelArray

  

fill a rectangular area with the supplied ARGB

InvertPixelArray

  

Invert a rectangular area

BltBitMapRastPort

  

Blit from source bitmap to destination rastport.


Documentation generated on: 2021-07-30