Accusoft.ImagXpress13.Net
SetArea Method




The System.Drawing.RectangleF to set as the bounding area for the image.
Sets the area.
Syntax
'Declaration
 
Public Sub SetArea( _
   ByVal boundingArea As RectangleF _
) 
'Usage
 
Dim instance As Processor
Dim boundingArea As RectangleF
 
instance.SetArea(boundingArea)
public void SetArea( 
   RectangleF boundingArea
)
public: void SetArea( 
   RectangleF boundingArea
) 
public:
void SetArea( 
   RectangleF boundingArea
) 

Parameters

boundingArea
The System.Drawing.RectangleF to set as the bounding area for the image.
Exceptions
ExceptionDescription
System.ArgumentExceptionThrown when a rectangle is specified with negative coordinates.
Remarks

There are two ways to specify a portion of the image to process: Region or Area.

There can only be one region, and one area specified per processor.

When EnableRegion is set to true, and a region has been defined using this method, all image processing actions apply to the region only.

When EnableArea has been set to true, and an area is defined using SetArea, all image processing actions apply to the area only.

When both a region and an area have been enabled and defined, image processing actions apply to whichever was most recently set.

When neither a region nor an area have been enabled and defined, image processing actions are applied to the entire image.

Note: If the X and the Y coordinates of the bounding area rectangle fall within the boundaries of the image but the Width or Height of the Rectangle exceeds the boundaries of the image, the update area is cropped to fit within the image boundaries.

See Also

Reference

Processor Class
Processor Members

 

 


©2018. Accusoft Corporation. All Rights Reserved.

Send Feedback