ClearImage COM Server
Resize Method
See Also  Send Feedback
PageSize
PageOrientation
ImageAlignment
Width
Height
Unit
CiRepair Object : Resize Method

Description

Resize image to page

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
PageOrientation
ValueDescription
epgoAutoOrientation is determind automaticaly
epgoLandscapeUse landscape orientation
epgoPortraitUse portrait orientation
ImageAlignment
ValueDescription
epiaBestFit 
epiaBottomCenter 
epiaBottomLeft 
epiaBottomRight 
epiaCenter 
epiaLeftCenter 
epiaRightCenter 
epiaStretch 
epiaTopCenter 
epiaTopLeft 
epiaTopRight 
Width
Height
Unit
ValueDescription
esuCentimeter 
esuInch 
esuPixel 

Remarks

Scanning document of standard size often produces images of 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:

  • Predefined size (PageSize, PageOrientation parameters)
  • Custom size (PageSize = epgsCusom,  Width, Height, Unit parameters)
  • Size of the image when it was open (PageSize = epgsOriginal)

Image data before resizing are:

  • Placed on resized image according to ImageAlignment parameter in the center of an new image, one of the corners, or aligned with center of one of sides.   NOTE:   If ImageAlignment is not epiaBestFit  and new image size is smaller than original some of original image information will be lost.
  • Scaled to occupy maximum area of resized image (ImageAlignment  = epiaBestFit)

See Also

© 1992-2011. Inlite Research, Inc. All Rights Reserved.