Scale image
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.
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