GdPicture.NET.14.API
GdPicture14 Namespace / GdPictureSegmenter Class / SetROI Method
The x-coordinate of the upper-left point of the region of interest, in pixels, measured from the upper-left corner of the image.
The y-coordinate of the upper-left point of the region of interest, in pixels, measured from the upper-left corner of the image.
The width of the region of interest, in pixels.
The height of the region of interest, in pixels.





In This Topic
SetROI Method (GdPictureSegmenter)
In This Topic
Sets up the new region of interest (ROI) of an image, that is subsequently processed using the segmenter. Only the specified region is included into the next segmentation process.
Syntax
'Declaration
 
Public Function SetROI( _
   ByVal Left As Integer, _
   ByVal Top As Integer, _
   ByVal Width As Integer, _
   ByVal Height As Integer _
) As GdPictureStatus
public GdPictureStatus SetROI( 
   int Left,
   int Top,
   int Width,
   int Height
)
public function SetROI( 
    Left: Integer;
    Top: Integer;
    Width: Integer;
    Height: Integer
): GdPictureStatus; 
public function SetROI( 
   Left : int,
   Top : int,
   Width : int,
   Height : int
) : GdPictureStatus;
public: GdPictureStatus SetROI( 
   int Left,
   int Top,
   int Width,
   int Height
) 
public:
GdPictureStatus SetROI( 
   int Left,
   int Top,
   int Width,
   int Height
) 

Parameters

Left
The x-coordinate of the upper-left point of the region of interest, in pixels, measured from the upper-left corner of the image.
Top
The y-coordinate of the upper-left point of the region of interest, in pixels, measured from the upper-left corner of the image.
Width
The width of the region of interest, in pixels.
Height
The height of the region of interest, in pixels.

Return Value

A member of the GdPictureStatus enumeration. If the method has been successfully followed, then the return value is GdPictureStatus.OK.

We strongly recommend always checking this status first.

Remarks
The point, that represents the upper-left corner of the image, has the coordinates (0,0).
See Also