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

ScrollRaster

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

Declaration

Source position: agraphics.pas line 2108

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