ClearImage COM Server Send comments on this topic.
Resize Method
See Also 
PageSize
PageOrientation
ImageAlignment
Width
Height
Unit

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
epgsCustomCustom image size
epgsOriginalImage size before image is modified
epgsLetterLetter size
epgsLegalLegal size
epgsLedgerLedger size
epgsA4A4 page size
PageOrientation
ValueDescription
epgoAutoOrientation is determind automaticaly
epgoPortraitUse portrait orientation
epgoLandscapeUse landscape orientation
ImageAlignment
ValueDescription
epiaCenter 
epiaTopLeft 
epiaTopRight 
epiaBottomLeft 
epiaBottomRight 
epiaTopCenter 
epiaBottomCenter 
epiaLeftCenter 
epiaRightCenter 
epiaBestFit 
Width
Height
Unit
ValueDescription
esuPixel 
esuInch 
esuCentimeter 

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 paramters)
  • Size of the image when it wos open (PageSize = epgsOriginal)

Image data before resizing are:

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

See Also