C# Class System.Drawing.Region

Inheritance: MarshalByRefObject, IDisposable
Show file Open project: mono/sysdrawing-coregraphics Class Usage Examples

Private Properties

Property Type Description
Dispose void
GetBounds RectangleF
IntPointToPointF PointF
PathToPointFArray PointF[]
PathsToInternalPath void
PlotPath void
PointFArrayToIntArray Android.Graphics.Path
RectangleToPath Android.Graphics.Path
TransformIntPoint void
calculateRegionPath void

Public Methods

Method Description
Clone ( ) : Region
Dispose ( ) : void
Equals ( Region region, Graphics g ) : bool
Exclude ( GraphicsPath path ) : void

Updates this Region to contain only the portion of its interior that does not intersect with the specified GraphicsPath.

Exclude ( Rectangle rect ) : void

Updates this Region to contain only the portion of its interior that does not intersect with the specified Rectangle structure.

Exclude ( RectangleF rect ) : void

Updates this Region to contain only the portion of its interior that does not intersect with the specified RectangleF structure.

Exclude ( Region region ) : void

Updates this Region to contain only the portion of its interior that does not intersect with the specified Region.

GetBounds ( Graphics g ) : RectangleF
Intersect ( GraphicsPath path ) : void

Updates this Region to the intersection of itself with the specified GraphicsPath.

Intersect ( Rectangle rect ) : void

Updates this Region to the intersection of itself with the specified Rectangle structure.

Intersect ( RectangleF rect ) : void

Updates this Region to the intersection of itself with the specified RectangleF structure.

Intersect ( Region region ) : void

Updates this Region to the intersection of itself with the specified Region.

IsVisible ( Point point ) : bool
IsVisible ( PointF point ) : bool
IsVisible ( Rectangle rectangle ) : bool
IsVisible ( RectangleF rectangle ) : bool
IsVisible ( float x, float y ) : bool
IsVisible ( int x, int y ) : bool
MakeEmpty ( ) : void
MakeInfinite ( ) : void
Region ( ) : CoreGraphics
Region ( GraphicsPath path ) : CoreGraphics
Region ( Rectangle rect ) : CoreGraphics
Region ( RectangleF rect ) : CoreGraphics
Transform ( Matrix matrix ) : void
Translate ( float dx, float dy ) : void
Translate ( int dx, int dy ) : void
Union ( GraphicsPath path ) : void

Updates this Region to the union of itself and the specified GraphicsPath.

Union ( Rectangle rect ) : void

Updates this Region to the union of itself and the specified Rectangle structure.

Union ( RectangleF rect ) : void

Updates this Region to the union of itself and the specified RectangleF structure.

Union ( Region region ) : void

Updates this Region to the union of itself and the specified Region.

Xor ( GraphicsPath path ) : void

Updates this Region to the union minus the intersection of itself with the specified GraphicsPath.

Xor ( Rectangle rect ) : void

Updates this Region to the union minus the intersection of itself with the specified Rectangle structure.

Xor ( RectangleF rect ) : void

Updates this Region to the union minus the intersection of itself with the specified RectangleF structure.

Xor ( Region region ) : void

Updates this Region to the union minus the intersection of itself with the specified Region.

Private Methods

Method Description
Dispose ( bool disposing ) : void
GetBounds ( ) : RectangleF
IntPointToPointF ( IntPoint point ) : PointF
PathToPointFArray ( Android.Graphics.Path pg, float scale ) : PointF[]
PathsToInternalPath ( Paths paths ) : void
PlotPath ( GraphicsPath path ) : void
PointFArrayToIntArray ( PointF points, float scale ) : Android.Graphics.Path
RectangleToPath ( RectangleF rect ) : Android.Graphics.Path
TransformIntPoint ( IntPoint &point, Matrix matrix ) : void

Transform the specified Rectangle by the matrix that is passed.

calculateRegionPath ( ClipType clipType ) : void

Method Details

Clone() public method

public Clone ( ) : Region
return Region

Dispose() public method

public Dispose ( ) : void
return void

Equals() public method

public Equals ( Region region, Graphics g ) : bool
region Region
g Graphics
return bool

Exclude() public method

Updates this Region to contain only the portion of its interior that does not intersect with the specified GraphicsPath.
public Exclude ( GraphicsPath path ) : void
path System.Drawing.Drawing2D.GraphicsPath Path.
return void

Exclude() public method

Updates this Region to contain only the portion of its interior that does not intersect with the specified Rectangle structure.
public Exclude ( Rectangle rect ) : void
rect Rectangle Rect.
return void

Exclude() public method

Updates this Region to contain only the portion of its interior that does not intersect with the specified RectangleF structure.
public Exclude ( RectangleF rect ) : void
rect RectangleF Rect.
return void

Exclude() public method

Updates this Region to contain only the portion of its interior that does not intersect with the specified Region.
public Exclude ( Region region ) : void
region Region Region.
return void

GetBounds() public method

public GetBounds ( Graphics g ) : RectangleF
g Graphics
return RectangleF

Intersect() public method

Updates this Region to the intersection of itself with the specified GraphicsPath.
public Intersect ( GraphicsPath path ) : void
path System.Drawing.Drawing2D.GraphicsPath Path.
return void

Intersect() public method

Updates this Region to the intersection of itself with the specified Rectangle structure.
public Intersect ( Rectangle rect ) : void
rect Rectangle Rect.
return void

Intersect() public method

Updates this Region to the intersection of itself with the specified RectangleF structure.
public Intersect ( RectangleF rect ) : void
rect RectangleF Rect.
return void

Intersect() public method

Updates this Region to the intersection of itself with the specified Region.
public Intersect ( Region region ) : void
region Region Region.
return void

IsVisible() public method

public IsVisible ( Point point ) : bool
point Point
return bool

IsVisible() public method

public IsVisible ( PointF point ) : bool
point PointF
return bool

IsVisible() public method

public IsVisible ( Rectangle rectangle ) : bool
rectangle Rectangle
return bool

IsVisible() public method

public IsVisible ( RectangleF rectangle ) : bool
rectangle RectangleF
return bool

IsVisible() public method

public IsVisible ( float x, float y ) : bool
x float
y float
return bool

IsVisible() public method

public IsVisible ( int x, int y ) : bool
x int
y int
return bool

MakeEmpty() public method

public MakeEmpty ( ) : void
return void

MakeInfinite() public method

public MakeInfinite ( ) : void
return void

Region() public method

public Region ( ) : CoreGraphics
return CoreGraphics

Region() public method

public Region ( GraphicsPath path ) : CoreGraphics
path System.Drawing.Drawing2D.GraphicsPath
return CoreGraphics

Region() public method

public Region ( Rectangle rect ) : CoreGraphics
rect Rectangle
return CoreGraphics

Region() public method

public Region ( RectangleF rect ) : CoreGraphics
rect RectangleF
return CoreGraphics

Transform() public method

public Transform ( Matrix matrix ) : void
matrix Matrix
return void

Translate() public method

public Translate ( float dx, float dy ) : void
dx float
dy float
return void

Translate() public method

public Translate ( int dx, int dy ) : void
dx int
dy int
return void

Union() public method

Updates this Region to the union of itself and the specified GraphicsPath.
public Union ( GraphicsPath path ) : void
path System.Drawing.Drawing2D.GraphicsPath Path.
return void

Union() public method

Updates this Region to the union of itself and the specified Rectangle structure.
public Union ( Rectangle rect ) : void
rect Rectangle Rect.
return void

Union() public method

Updates this Region to the union of itself and the specified RectangleF structure.
public Union ( RectangleF rect ) : void
rect RectangleF Rect.
return void

Union() public method

Updates this Region to the union of itself and the specified Region.
public Union ( Region region ) : void
region Region Region.
return void

Xor() public method

Updates this Region to the union minus the intersection of itself with the specified GraphicsPath.
public Xor ( GraphicsPath path ) : void
path System.Drawing.Drawing2D.GraphicsPath Path.
return void

Xor() public method

Updates this Region to the union minus the intersection of itself with the specified Rectangle structure.
public Xor ( Rectangle rect ) : void
rect Rectangle Rect.
return void

Xor() public method

Updates this Region to the union minus the intersection of itself with the specified RectangleF structure.
public Xor ( RectangleF rect ) : void
rect RectangleF Rect.
return void

Xor() public method

Updates this Region to the union minus the intersection of itself with the specified Region.
public Xor ( Region region ) : void
region Region Region.
return void