Visual Basic (Declaration) | |
---|---|
Public Function Resize( _ ByVal PageSize As EPageSize, _ ByVal PageOrientation As EPageOrientation, _ ByVal ImageAlignment As EImageAlignment, _ ByVal Width As Double, _ ByVal Height As Double, _ ByVal Unit As ESizeUnit _ ) As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As CiRepair Dim PageSize As EPageSize Dim PageOrientation As EPageOrientation Dim ImageAlignment As EImageAlignment Dim Width As Double Dim Height As Double Dim Unit As ESizeUnit Dim value As Integer value = instance.Resize(PageSize, PageOrientation, ImageAlignment, Width, Height, Unit) |
C# | |
---|---|
public int Resize( EPageSize PageSize, EPageOrientation PageOrientation, EImageAlignment ImageAlignment, double Width, double Height, ESizeUnit Unit ) |
Delphi | |
---|---|
public function Resize( PageSize: EPageSize; PageOrientation: EPageOrientation; ImageAlignment: EImageAlignment; Width: Double; Height: Double; Unit: ESizeUnit ): Integer; |
JScript | |
---|---|
public function Resize( PageSize : EPageSize, PageOrientation : EPageOrientation, ImageAlignment : EImageAlignment, Width : double, Height : double, Unit : ESizeUnit ) : int; |
Managed Extensions for C++ | |
---|---|
public: int Resize( EPageSize PageSize, EPageOrientation PageOrientation, EImageAlignment ImageAlignment, double Width, double Height, ESizeUnit Unit ) |
C++/CLI | |
---|---|
public: int Resize( EPageSize PageSize, EPageOrientation PageOrientation, EImageAlignment ImageAlignment, double Width, double Height, ESizeUnit Unit ) |
Parameters
- PageSize
- PageOrientation
- ImageAlignment
- Width
- Height
- Unit
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)
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family