Hide Comments
Hide Comments

Comments (0)

The TRSGPRegion class describes an area of the display surface. The area can be any shape. In other words, the boundary of the area can be a combination of curved and straight lines. Regions can also be created from the interiors of rectangles, paths, or a combination of these. Regions are used in clipping and hit-testing operations.

alert_noteNotes to Implementers

Wraps the Canvas' region. Needed because GDI+ API doesn't expose handle for Graphic's Region

Namespace: RSGdiPlusGraphics

expandingInheritance Hierarchy
expandingSyntax
expandingConstructors
expandingProperties
expandingMethods

By default, the region is replaced with the input.

public method

Combine(TRSGPPath,TRSGPRegionCombineMode)

Overloaded.  Combines the current region with the path.

The mode parameter controls how the combining takes place:

cmReplace

New region replaces existing region

cmComplement

Specifies that the existing region is replaced by the portion of the new region that is outside of the existing region.
 

cmExclude

Specifies that the existing region is replaced by the portion of itself that is outside of the new region.
 

cmIntersect

Updates this region to the portion of itself that intersects the specified object's interior.
 

cmUnion

Updates this region to all portions (intersecting and nonintersecting) of itself and all portions of another object
 

cmXOR

Updates this region to the nonintersecting portions of itself and the specified object's interior
 

By default, the region is replaced with the input.

public method

Combine(TRSGPRegion,TRSGPRegionCombineMode)

Overloaded.  Combines the current region with the data from the input region

The mode parameter controls how the combining takes place:

cmReplace

New region replaces existing region

cmComplement

Specifies that the existing region is replaced by the portion of the new region that is outside of the existing region.
 

cmExclude

Specifies that the existing region is replaced by the portion of itself that is outside of the new region.
 

cmIntersect

Updates this region to the portion of itself that intersects the specified object's interior.
 

cmUnion

Updates this region to all portions (intersecting and nonintersecting) of itself and all portions of another object
 

cmXOR

Updates this region to the nonintersecting portions of itself and the specified object's interior
 

By default, the region is replaced with the input.

public method

Equals(TObject)

Overloaded. Determines whether this region is equal to an object. If the Obj is a region, the method compares the shape of the region to see if they are equal. (Overrides RSGdiPlusGraphics.TRSGPRegion.Equals(TObject).)

public method

GetBounds

Returns a rectangle that encloses this region. (Overrides RSGdiPlusGraphics.TRSGPRegion.GetBounds.)

public method

GetData

Returns the data that describes this region. (Overrides RSGdiPlusGraphics.TRSGPRegion.GetData.)

protected method

GetHandle

Call this method to acquire a handle from the GDI+ flat API library (Overrides RSGdiPlusGraphics.TRSGPRegion.GetHandle.)

public method

GetHRGN

Creates a Windows Graphics Device Interface (GDI) region from this region. (Overrides RSGdiPlusGraphics.TRSGPRegion.GetHRGN.)

public method

GetRegionScans

Overloaded. Gets an array of rectangles that approximate this region. The region is transformed by the owner canvas' matrix before the rectangles are calculated. (Overrides RSGdiPlusGraphics.TRSGPRegion.GetRegionScans.)

public method

IsEmpty

Determines whether this region is empty. (Overrides RSGdiPlusGraphics.TRSGPRegion.IsEmpty.)

public method

IsInfinite

Determines whether this region is infinite. (Overrides RSGdiPlusGraphics.TRSGPRegion.IsInfinite.)

public method

IsVisible(TPoint)

Overloaded. Returns true if the point is inside this region. (Overrides RSGdiPlusGraphics.TRSGPRegion.IsVisible(TPoint).)

public method

IsVisible(TPointF)

Overloaded. Returns true if the point is inside this region.
 (Overrides RSGdiPlusGraphics.TRSGPRegion.IsVisible(TPointF).)

public method

IsVisible(TRect)

Overloaded. Returns true if a rectangle intersects this region. (Overrides RSGdiPlusGraphics.TRSGPRegion.IsVisible(TRect).)

public method

IsVisible(TRectF)

Overloaded. Returns true if a rectangle intersects this region. (Overrides RSGdiPlusGraphics.TRSGPRegion.IsVisible(TRectF).)

public method

MakeInfinite

Updates this region to an infinite region. (Overrides RSGdiPlusGraphics.TRSGPRegion.MakeInfinite.)

protected method

Notification(TRSGPCanvas)

Called when the Canvas is releasing control of the graphics object. The canvas will no longer be responsible for freeing the graphics object. (Inherited from RSGdiPlusGraphics.TRSGPGraphicsObject.)

public method

Prepare(TRectF,Single)

Prepare the graphics object for drawing. Graphics objects respond in this method to upcoming calls. For example, gradient brushes can make sure the gradient will cover the entire rectangle. (Inherited from RSGdiPlusGraphics.TRSGPGraphicsObject.)

public method

QueryInterface(TGUID,Void)

Represents method QueryInterface(TGUID,Void). (Inherited from RSGdiPlusGraphics.TRSGPGraphicsObject.)

protected method

ReleaseHandle

Releases the underlying GDI+ object back to the GDI+ library. (Overrides RSGdiPlusGraphics.TRSGPRegion.ReleaseHandle.)

public method

Translate(Integer,Integer)

Overloaded. Offsets this region by specified amounts in the horizontal and vertical directions. (Overrides RSGdiPlusGraphics.TRSGPRegion.Translate(Integer,Integer).)

public method

Translate(Single,Single)

Overloaded. Offsets this region by specified amounts in the horizontal and vertical directions. (Overrides RSGdiPlusGraphics.TRSGPRegion.Translate(Single,Single).)

public method

Update

Update native graphics object (Inherited from RSGdiPlusGraphics.TRSGPGraphicsObject.)

public method

_AddRef

Represents method _AddRef. (Inherited from RSGdiPlusGraphics.TRSGPGraphicsObject.)

public method

_Release

Represents method _Release. (Inherited from RSGdiPlusGraphics.TRSGPGraphicsObject.)

Top

expandingFields
expandingSee Also

Comments (0)

RiverSoftAVG SVG Component Library (RSCL) © 2013-2016, Thomas G. Grubb