com.java4less.rfax
Class T4Encoder

java.lang.Object
  |
  +--com.java4less.rfax.T4Encoder

public class T4Encoder
extends java.lang.Object

This class is reponsible for encoding the image to fax data format


Field Summary
 boolean alignEOL
          align EOL to bytes
 boolean centerImage
          center image
 boolean completeLine
          send all line bits (up to 1728)
 boolean createEOP
          create end of page
 boolean debug
          encoder debug mode
 int lineWidth
          line width, default is 1728 (215 mm, 196 dpi)
 int minBytesLine
          minimum number of bytes per line
 int pageLength
          page length, default is 2387 (297 mm, 196 dpi)
 int scaleFactor
          image scale factor.
 boolean scaleImage
          scale provided image to page size (lineWidth * pageLength).
 
Constructor Summary
T4Encoder()
           
 
Method Summary
 byte[] encodeImage(java.awt.Image i)
          encode image
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public boolean debug
encoder debug mode

minBytesLine

public int minBytesLine
minimum number of bytes per line

alignEOL

public boolean alignEOL
align EOL to bytes

completeLine

public boolean completeLine
send all line bits (up to 1728)

lineWidth

public int lineWidth
line width, default is 1728 (215 mm, 196 dpi)

pageLength

public int pageLength
page length, default is 2387 (297 mm, 196 dpi)

scaleImage

public boolean scaleImage
scale provided image to page size (lineWidth * pageLength). If true "scaleFactor" will be automatically calculated.

scaleFactor

public int scaleFactor
image scale factor. RFax will scale your image according to this value. Default value of 1 ,leaves image as it is.

centerImage

public boolean centerImage
center image

createEOP

public boolean createEOP
create end of page
Constructor Detail

T4Encoder

public T4Encoder()
Method Detail

encodeImage

public byte[] encodeImage(java.awt.Image i)
encode image