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

SetRegion

Sets the destination region to the source region.

Declaration

Source position: agraphics.pas line 2238

function SetRegion(

  Src: PRegion;

  Dest: PRegion

):LongBool;

Arguments

Src

  

Source Region

Dest

  

Destination Region

Function result

True if everything went alright, False otherwise (out of memory).

Description

Allocates necessary RegionRectangles if necessary and deallocates any excessive RegionRectangles in the destination Region. The source Region remains untouched. If the system runs out of memory during allocation of RegionRectangles the destination Region will.

See also

NewRegion

  

Allocates memory for a new Region and initializes it to an empty Region.

DisposeRegion

  

Return all space for this region to free memory pool.


Documentation generated on: 2021-07-30