Property | Defined By | ||
---|---|---|---|
properties : HashMap | BmpImage |
Method | Defined 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 | ||
[static]
Reads a BMP from a stream. | BmpImage |
Method | Defined By | ||
---|---|---|---|
process(stream:InputStream, noHeader:Boolean):void | BmpImage |
height | property |
protected var height:int
properties | property |
public var properties:HashMap
width | property |
protected var width:int
BmpImage | () | Constructor |
public function BmpImage(input:InputStream, noHeader:Boolean, size:int)
input:InputStream | |
noHeader:Boolean | |
size:int |
getImage | () | method |
public static function getImage(data:ByteArray):ImageElement
Reads a BMP from a byte array.
Parameters
data:ByteArray — the byte array
|
ImageElement — the image
|
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
|
ImageElement — the image
|
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
|
ImageElement — the image
|
IOException — on error
|
process | () | method |
protected function process(stream:InputStream, noHeader:Boolean):void
Parameters
stream:InputStream | |
noHeader:Boolean |
IOError
|