ClearImage .NET API
Resize Method (CiRepair)





Inlite.ClearImage Namespace > CiRepair Class : Resize Method
Image page size after resizing
Image orientation after resizing
Image alignment after resizing
Image width if PageSize=epgsCustom
Image width if PageSize=epgsCustom
Unit of Width and Height parameters
Resize the image.
Syntax
'Declaration
 
Public Function Resize( _
   ByVal PageSize As EPageSize, _
   ByVal PageOrientation As EPageOrientation, _
   ByVal ImageAlignment As EImageAlignment, _
   ByVal Width As System.Double, _
   ByVal Height As System.Double, _
   ByVal Unit As ESizeUnit _
) As System.Integer
'Usage
 
Dim instance As CiRepair
Dim PageSize As EPageSize
Dim PageOrientation As EPageOrientation
Dim ImageAlignment As EImageAlignment
Dim Width As System.Double
Dim Height As System.Double
Dim Unit As ESizeUnit
Dim value As System.Integer
 
value = instance.Resize(PageSize, PageOrientation, ImageAlignment, Width, Height, Unit)
public System.int Resize( 
   EPageSize PageSize,
   EPageOrientation PageOrientation,
   EImageAlignment ImageAlignment,
   System.double Width,
   System.double Height,
   ESizeUnit Unit
)
public function Resize( 
    PageSize: EPageSize;
    PageOrientation: EPageOrientation;
    ImageAlignment: EImageAlignment;
    Width: System.Double;
    Height: System.Double;
    Unit: ESizeUnit
): System.Integer; 
public function Resize( 
   PageSize : EPageSize,
   PageOrientation : EPageOrientation,
   ImageAlignment : EImageAlignment,
   Width : System.double,
   Height : System.double,
   Unit : ESizeUnit
) : System.int;
public:
System.int Resize( 
   EPageSize PageSize,
   EPageOrientation PageOrientation,
   EImageAlignment ImageAlignment,
   System.double Width,
   System.double Height,
   ESizeUnit Unit
) 

Parameters

PageSize
Image page size after resizing
PageOrientation
Image orientation after resizing
ImageAlignment
Image alignment after resizing
Width
Image width if PageSize=epgsCustom
Height
Image width if PageSize=epgsCustom
Unit
Unit of Width and Height parameters
Remarks

Scanning document of standard size often produces images of a slightly different dimension.   Some image processing operations, like BorderExtract, AutoCrop, AutoDeskew change size of the image.

Resize method sets of an image to one of:

Image data before resizing are:

See Also

Reference

CiRepair Class
CiRepair Members