ImageGear Professional for Windows ActiveX
IGRectangle Object

Description:

This object represents a rectangle. It's one of the three shape types supported by ImageGear. IGRectagle is used quite extensively in different components and doesn't have a semantics on its own, the semantics of the rectangle is different for the different places where it's used - e.g., it can be used to specify a rectangular ROI for IGPage Object, or device rectangle for IGPageDisplay Object. The rectangle can be empty, meaning that it represents no actual rectangle, this concept is used to indicate that rectangle should be ignored and the whole image should be processed instead. The rectangle is empty after creation.

Interface:

IIGRectangle extends IIGShape

Members:

Method
Empty Method This method makes the rectangle empty by changing its Width Property & Height Property to 0.
Properties
Bottom Property This property provides access to the Y coordinate of the right/bottom point of the rectangle.
Height Property This property provides access to the height of the rectangle.
IsEmpty Property This Boolean property tells whether the rectangle is empty. The rectangle is empty when both Width Property and Height Property are equal to 0.
IsValid Property This Boolean property tells whether the object holds values that represent a valid rectangle. Empty rectangle is deemed to be valid as well.
Left Property This property provides access to the X coordinate of the left/top point of the rectangle.
Right Property This property provides access to the X coordinate of the right/bottom point of the rectangle.
Top Property This property provides access to the Y coordinate of the left/top point of the rectangle.
Width Property This property provides access to the width of the rectangle.

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback