Packageorg.purepdf.pdf.codec
Classpublic class CCITTG4Encoder
InheritanceCCITTG4Encoder Inheritance Object



Public Methods
 MethodDefined By
  
CCITTG4Encoder(width:int)
Creates a new encoder.
CCITTG4Encoder
  
CCITTG4Encoder
  
compress(data:Bytes, width:int, height:int):Bytes
[static] Encodes a full image.
CCITTG4Encoder
  
fax4Encode(data:Bytes, offset:int, size:int):void
Encodes a number of lines.
CCITTG4Encoder
  
fax4Encode2(data:Bytes, height:int):void
Encodes a number of lines.
CCITTG4Encoder
Constructor Detail
CCITTG4Encoder()Constructor
public function CCITTG4Encoder(width:int)

Creates a new encoder.

Parameters
width:int — the line width
Method Detail
close()method
public function close():Bytes

Returns
Bytes
compress()method 
public static function compress(data:Bytes, width:int, height:int):Bytes

Encodes a full image.

Parameters

data:Bytes — the data to encode
 
width:int — the image width
 
height:int — the image height

Returns
Bytes — the encoded image
fax4Encode()method 
public function fax4Encode(data:Bytes, offset:int, size:int):void

Encodes a number of lines.

Parameters

data:Bytes — the data to be encoded
 
offset:int — the offset into the data
 
size:int — the size of the data to be encoded

fax4Encode2()method 
public function fax4Encode2(data:Bytes, height:int):void

Encodes a number of lines.

Parameters

data:Bytes — the data to be encoded
 
height:int — the number of lines to encode