ImageGear Professional for Windows ActiveX
IGROI Object

Description:

Represents ROI (region of interest) associated with IGPage Object, there are 3 types of ROI: whole image, rectangle, and non-rectangular area (NRA). ROI is always associated with IGPage Object and is accessible via the ROI Property of it. The default ROI type is the whole image. NRA ROI is represented as a reference point (Left and Top attributes of the bounding rectangle) and an NRA mask. NRA mask is a 1-bit image with the boolean semantics - 1 means that corresponding pixel belongs to the shape, and 0 means the opposite.

Interface:

IIGROI

Members:

Methods
Convert Method This method converts ROI to a different type.
Dilate Method Applies dilation to the ROI.
Erode Method Applies erosion to the ROI.
GetMaskCopy Method This method creates a copy of NRA mask in case of IG_ROI_NRA type.
InitFromShape Method This method changes ROI to represent specified shape and changes ROI type correspondingly.
UpdateMaskFrom Method This method updates NRA mask and changes ROI type to IG_ROI_NRA type if it had a different type before.
Properties
Height Property This property represents the height of the rectangle in case of IG_ROI_RECT type, and the height of the bounding rectangle in case of IG_ROI_NRA type (the property is read only in case of NRA).
Left Property This property represents the X coordinate of the left/top point of the rectangle in case of IG_ROI_RECT type or the bounding rectangle in case of IG_ROI_NRA type.
Top Property This property represents the Y coordinate of the left/top point of the rectangle in case of IG_ROI_RECT type or the bounding rectangle in case of IG_ROI_NRA type.
Type Property This property returns the type of ROI.
Width Property This property represents the width of the rectangle in case of IG_ROI_RECT type, and the height of the bounding rectangle in case of IG_ROI_NRA type (the property is read only in case of NRA).

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback