Get the rectangle that delimits the visible area of an image.
Syntax

[C#]

XRect GetVisibleRect();

[Visual Basic]

Function GetVisibleRect() As XRect
Params
Name Description
return The visible rectangle.
Notes

This property returns the smallest possible rectangle that encloses all the visible portions of the image. Visibility is established using the image opacity held in the alpha channel. This method is typically used after calling a method such as Select which affects the opacity of the image.

This operation is only valid for a canvas in raster format. If the canvas is not in a raster format it will be rasterized.

Example

None.