ClearImage COM API
Resize Method
CiRepair Object : 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
Description
Resize the image.
Syntax
Visual Basic
Public Sub Resize( _
   ByVal PageSize As EPageSize, _
   Optional ByVal PageOrientation As EPageOrientation = epgoAuto, _
   Optional ByVal ImageAlignment As EImageAlignment = epiaCenter, _
   Optional ByVal Width As Double = 8.5, _
   Optional ByVal Height As Double = 11, _
   Optional ByVal Unit As ESizeUnit = esuInch _
) 
Parameters
PageSize
ValueDescription
epgsA4A4 page size
epgsCustomCustom image size
epgsImage 
epgsLedgerLedger size
epgsLegalLegal size
epgsLetterLetter size
epgsNearest 
epgsNearestMetric 
epgsNearestStd 
epgsOriginalImage size before image is modified
Image page size after resizing
PageOrientation
ValueDescription
epgoAutoOrientation is determined automatically
epgoLandscapeUse landscape orientation
epgoPortraitUse portrait orientation
Image orientation after resizing
ImageAlignment
ValueDescription
epiaBestFit 
epiaBottomCenter 
epiaBottomLeft 
epiaBottomRight 
epiaCenter 
epiaLeftCenter 
epiaRightCenter 
epiaStretch 
epiaTopCenter 
epiaTopLeft 
epiaTopRight 
Image alignment after resizing
Width
Image width if PageSize=epgsCustom
Height
Image width if PageSize=epgsCustom
Unit
ValueDescription
esuCentimeter 
esuInch 
esuPixel 
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

CiRepair Object  | CiRepair Members