Convert standard resolution fax image to the fine resolution
Visual Basic |
---|
Public Sub FaxStandardToFine() |
Fax image transmitted in Standard mode (typically resolution is 204dpi x 98dpi) is converted to Fine mode.
Image is stretch vertically by factor of 2 and transitions between lines are interpolated.
This method generates an error if object.Image.IsZone is true.
Method requires bi-tonal image (object.Image.BitsPerPixel = 1).
Sub RepairFaxMethods(imageFile As String, imageFileOut As String) ' Create objects and open input images Dim Ci As New CiServer Dim Repair As CiRepair: Set Repair = Ci.CreateRepair Repair.Image.Open imageFile ' Do Processing Repair.FaxStandardToFine Repair.FaxRemoveHeader Repair.FaxRemoveBlankLines Repair.Image.SaveAs imageFileOut, ciEXT End Sub