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


XRect GetVisibleRect();

[Visual Basic]

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

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 canvase in raster format. If the canvas is not in a raster format it will be rasterized.