Hide Comments
Hide Comments

Comments (0)

The TRSGPCanvasRegion 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.

noteNote

This region class requires a canvas owner.

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.

public method

GetBounds

Returns a rectangle that encloses this region.

public method

GetData

Returns the data that describes this region.

protected method

GetHandle

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

public method

GetHRGN

Creates a Windows Graphics Device Interface (GDI) region from this region.

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.

public method

IsEmpty

Determines whether this region is empty.

public method

IsInfinite

Determines whether this region is infinite.

public method

IsVisible(TPoint)

Overloaded. Returns true if the point is inside this region.

public method

IsVisible(TPointF)

Overloaded. Returns true if the point is inside this region.
 

public method

IsVisible(TRect)

Overloaded. Returns true if a rectangle intersects this region.

public method

IsVisible(TRectF)

Overloaded. Returns true if a rectangle intersects this region.

public method

MakeInfinite

Updates this region to an infinite region.

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.TRSGPGraphicsObject.ReleaseHandle.)

public method

Translate(Integer,Integer)

Overloaded. Offsets this region by specified amounts in the horizontal and vertical directions.

public method

Translate(Single,Single)

Overloaded. Offsets this region by specified amounts in the horizontal and vertical directions.

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