Packageorg.purepdf.pdf.codec
Classpublic class BmpImage
InheritanceBmpImage Inheritance Object



Public Properties
 PropertyDefined By
  properties : HashMap
BmpImage
Protected Properties
 PropertyDefined By
  height : int
BmpImage
  width : int
BmpImage
Public Methods
 MethodDefined By
  
BmpImage(input:InputStream, noHeader:Boolean, size:int)
BmpImage
  
getImage(data:ByteArray):ImageElement
[static] Reads a BMP from a byte array.
BmpImage
  
[static] Reads a BMP from a stream.
BmpImage
  
getImage3(input:InputStream, noHeader:Boolean, size:int):ImageElement
[static] Reads a BMP from a stream.
BmpImage
Protected Methods
 MethodDefined By
  
process(stream:InputStream, noHeader:Boolean):void
BmpImage
Property Detail
heightproperty
protected var height:int

propertiesproperty 
public var properties:HashMap

widthproperty 
protected var width:int

Constructor Detail
BmpImage()Constructor
public function BmpImage(input:InputStream, noHeader:Boolean, size:int)



Parameters
input:InputStream
 
noHeader:Boolean
 
size:int
Method Detail
getImage()method
public static function getImage(data:ByteArray):ImageElement

Reads a BMP from a byte array.

Parameters

data:ByteArray — the byte array

Returns
ImageElement — the image

Throws
IOException — on error
getImage2()method 
public static function getImage2(input:InputStream):ImageElement

Reads a BMP from a stream. The stream is not closed.

Parameters

input:InputStream — the stream

Returns
ImageElement — the image

Throws
IOException — on error
getImage3()method 
public static function getImage3(input:InputStream, noHeader:Boolean, size:int):ImageElement

Reads a BMP from a stream. The stream is not closed. The BMP may not have a header and be considered as a plain DIB.

Parameters

input:InputStream — the stream
 
noHeader:Boolean — true to process a plain DIB
 
size:int — the size of the DIB. Not used for a BMP

Returns
ImageElement — the image

Throws
IOException — on error
process()method 
protected function process(stream:InputStream, noHeader:Boolean):void

Parameters

stream:InputStream
 
noHeader:Boolean


Throws
IOError