ClearImage COM API
ScaleImage Method
CiTools Object : ScaleImage Method
Scale factor in horizontal direction
Scale factor in vertical direction
Description
Scale image
Syntax
Visual Basic
Public Sub ScaleImage( _
   ByVal ScaleX As Double, _
   ByVal ScaleY As Double _
) 
Parameters
ScaleX
Scale factor in horizontal direction
ScaleY
Scale factor in vertical direction
Remarks

When ScaleX or ScaleY are less than 1.0 bi-tonal image is converted to grayscale before scaling. Then it is converted back to bi-tonal applying pScaleType  and pScaleThreshold properties.

Image.HorzDpi and Image.VertDpi properties are multiplied by ScaleX and ScaleY respectively.

This method generates an error if object.Image.IsZone is true.

Example
Sub ScaleImage(imageFile As String, imageFileOut As String)
    ' Create objects and open input images
  Dim Ci As New CiServer
  Dim Tools As CiTools: Set Tools = Ci.CreateTools
  Tools.Image.Open imageFile
    ' Do processing
  Tools.ScaleImage 0.5, 0.5
    ' Save results
  Tools.Image.SaveAs imageFileOut, ciEXT
End Sub
See Also

CiTools Object  | CiTools Members  | ScaleImage  | pScaleType  | pScaleThreshold