ClearImage .NET API
FaxRemoveHeader Method (CiRepair)
Example 





Inlite.ClearImage Namespace > CiRepair Class : FaxRemoveHeader Method
Remove header from faxed image
Syntax
'Declaration
 
Public Function FaxRemoveHeader() As System.Integer
'Usage
 
Dim instance As CiRepair
Dim value As System.Integer
 
value = instance.FaxRemoveHeader()
public System.int FaxRemoveHeader()
public function FaxRemoveHeader(): System.Integer; 
public function FaxRemoveHeader() : System.int;
public:
System.int FaxRemoveHeader(); 
Remarks

Fax machines often insert a header on the top of the output image.  This method deletes this Fax header.

Re-scanning or deskewing faxed image prevents removing fax header.


 

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