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

MovePixelArray

move the color values of a rectangular area

Declaration

Source position: cybergraphics.pas line 312

function MovePixelArray(

  SrcX: Word;

  SrcY: Word;

  a1arg: PRastPort;

  DestX: Word;

  DestY: Word;

  SizeX: Word;

  SizeY: Word

):LongWord;

Arguments

SrcX

  

Starting x point in the source rectangle

SrcY

  

Starting y point in the source rectangle

a1arg

  

Pointer to a RastPort structure

DestX

  

Starting x point in the destination rectangle

DestY

  

Starting y point in the destination 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