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

ScrollRaster

Push bits in rectangle in raster around by dx,dy towards 0,0 inside rectangle.

Declaration

Source position: agraphics.pas line 2046

procedure ScrollRaster(

  Rp: PRastPort;

  Dx: LongInt;

  Dy: LongInt;

  XMin: LongInt;

  YMin: LongInt;

  XMax: LongInt;

  YMax: LongInt

);

Arguments

Rp

  

A pointer to a rastport

Dx

  

x value to move

Dy

  

y value to move

XMin

  

Left edge of the rect to scroll

YMin

  

Upper edge of the rect to scroll

XMax

  

right edge of the rect to scroll

YMax

  

lower edge of the rect to scroll

Description

Scroll the contents of a rastport (dx,dy) towards (0,0). The empty spaces is filled by a call to RectFill(). Only the pixel in the rectangle (xMin,yMin)-(xMax,yMax) will be affected. The lower right corner (xMax, yMax) is automatically adjusted to the lower right corner in case it would be outside. After this operation the Flags bit of the layer associated with this rastport, if there is any layer, should be tested for simple layers in case there has any damage been created.

See also

ScrollRasterBF

  

Push bits in rectangle in raster around by dx,dy towards 0,0 inside rectangle. Newly empty areas will be filled via EraseRect().


Documentation generated on: 2021-07-30