Class IGDIPlus.TGPRegion
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Package: SignalLabBasicPkg
Unit: IGDIPlus
Inherits: TGPBase
Contents |
Syntax
Delphi:
type TGPRegion = class( TGPBase, IGPRegion )
C++ Builder:
class TGPRegion : public TGPBase
Visual C++ (MFC):
class CTGPRegion : public CTGPBase
C# (.NET):
public ref class TGPRegion : Mitov.SignalLab.Base
Summary
Describes an area of the display surface.
Description
The TGPRegion 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. Remarks A GDI+ region is stored in world coordinates whereas a GDI region is stored in device coordinates. Therefore, a GDI+ region is scalable and a GDI region is not. For more information, see Scalable Regions
An application can use regions to clip the output of drawing operations. The Window Manager uses regions to define the drawing area of windows. These regions are called clipping regions. An application can also use regions in hit-testing operations, such as checking whether a point is in a region or whether a rectangle intersects a region. For more information, see "Regions", "Clipping", and "Using Regions" on MSDN.
Methods
Public
- function FromHRGN(hRgn : HRGN) : TGPRegion - Creates a Microsoft Windows GDI+Region object from a Windows Graphics Device Interface (GDI) region.
- function Clone() : TGPRegion
- function MakeInfinite() : TGPRegion
- function MakeEmpty() : TGPRegion
- function GetDataSize() : Cardinal
- function GetData() : TGPByteArray
- function Intersect(rect : TGPRect) : TGPRegion
- function IntersectF(rect : TGPRectF) : TGPRegion
- function Intersect(path : IGPGraphicsPath) : TGPRegion
- function Intersect(region : IGPRegion) : TGPRegion
- function Union(rect : TGPRect) : TGPRegion
- function UnionF(rect : TGPRectF) : TGPRegion
- function Union(path : IGPGraphicsPath) : TGPRegion
- function Union(region : IGPRegion) : TGPRegion
- function XorRegion(rect : TGPRect) : TGPRegion
- function XorRegionF(rect : TGPRectF) : TGPRegion
- function XorRegion(path : IGPGraphicsPath) : TGPRegion
- function XorRegion(region : IGPRegion) : TGPRegion
- function Exclude(rect : TGPRect) : TGPRegion
- function ExcludeF(rect : TGPRectF) : TGPRegion
- function Exclude(path : IGPGraphicsPath) : TGPRegion
- function Exclude(region : IGPRegion) : TGPRegion
- function Complement(rect : TGPRect) : TGPRegion
- function ComplementF(rect : TGPRectF) : TGPRegion
- function Complement(path : IGPGraphicsPath) : TGPRegion
- function Complement(region : IGPRegion) : TGPRegion
- function TranslateF(dx : Single; dy : Single) : TGPRegion
- function Translate(dx : Integer; dy : Integer) : TGPRegion
- function Transform(matrix : IGPMatrix) : TGPRegion
- function GetBounds(g : IGPGraphics) : TGPRect
- function GetBoundsF(g : IGPGraphics) : TGPRectF
- function GetHRGN(g : IGPGraphics) : HRGN
- function IsEmpty(g : IGPGraphics) : Boolean
- function IsInfinite(g : IGPGraphics) : Boolean
- function IsVisible(x : Integer; y : Integer; g : IGPGraphics) : Boolean
- function IsVisible(point : TGPPoint; g : IGPGraphics) : Boolean
- function IsVisibleF(x : Single; y : Single; g : IGPGraphics) : Boolean
- function IsVisibleF(point : TGPPointF; g : IGPGraphics) : Boolean
- function IsVisible(x : Integer; y : Integer; width : Integer; height : Integer; g : IGPGraphics) : Boolean
- function IsVisible(rect : TGPRect; g : IGPGraphics) : Boolean
- function IsVisibleF(x : Single; y : Single; width : Single; height : Single; g : IGPGraphics) : Boolean
- function IsVisibleF(rect : TGPRectF; g : IGPGraphics) : Boolean
- function EqualsRegion(region : IGPRegion; g : IGPGraphics) : Boolean
- function GetRegionScansCount(matrix : IGPMatrix) : Cardinal
- function GetRegionScansF(matrix : IGPMatrix) : TGPRectFArray
- function GetRegionScans(matrix : IGPMatrix) : TGPRectArray