ClearImage .NET API
FaxStandardToFine Method (CiRepair)
Example 





Inlite.ClearImage Namespace > CiRepair Class : FaxStandardToFine Method
Convert standard resolution fax image to the fine resolution
Syntax
'Declaration
 
Public Function FaxStandardToFine() As System.Integer
'Usage
 
Dim instance As CiRepair
Dim value As System.Integer
 
value = instance.FaxStandardToFine()
public System.int FaxStandardToFine()
public function FaxStandardToFine(): System.Integer; 
public function FaxStandardToFine() : System.int;
public:
System.int FaxStandardToFine(); 
Remarks

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).

Example
void RepairFaxMethods(string imageFile, string imageFileOut)
{
    // Open image file
    CiServer ci = Inlite.ClearImageNet.Server.GetThreadServer();
    CiRepair Repair = ci.CreateRepair();
    Repair.Image.Open(imageFile, 1);
    // Do Processing
    Repair.FaxStandardToFine();
    Repair.FaxRemoveHeader();
    Repair.FaxRemoveBlankLines();
    Repair.Image.SaveAs(imageFileOut, EFileFormat.ciEXT);
}
Sub RepairFaxMethods(imageFile As String, imageFileOut As String)
    ' Open image file
    Dim ci As CiServer = Inlite.ClearImageNet.Server.GetThreadServer()
    Dim Repair As CiRepair = ci.CreateRepair()
    Repair.Image.Open(imageFile, 1)
    ' Do Processing
    Repair.FaxStandardToFine()
    Repair.FaxRemoveHeader()
    Repair.FaxRemoveBlankLines()
    Repair.Image.SaveAs(imageFileOut, EFileFormat.ciEXT)
End Sub
See Also

Reference

CiRepair Class
CiRepair Members
FaxStandardToFine Method
FaxRemoveHeader Method
FaxRemoveBlankLines Method