class ImageParser
package away3d.loaders.parsers
extends ParserBase
Available on all platforms
ImageParser provides a "parser" for natively supported image types (jpg, png). While it simply loads bytes into a loader object, it wraps it in a BitmapDataResource so resource management can happen consistently without exception cases.
Static methods
staticsupportsData(data:Dynamic):Bool
Tests whether a data block can be parsed by the parser.
Parameters:
data | The data block to potentially be parsed. |
|---|
Returns:
Whether or not the given data is supported.
staticsupportsType(extension:String):Bool
Indicates whether or not a given file extension is supported by the parser.
Parameters:
extension | The file extension of a potential file to be parsed. |
|---|
Returns:
Whether or not the given file type is supported.
Constructor
new()
Creates a new ImageParser object.
Parameters:
uri | The url or id of the data or file to be parsed. |
|---|---|
extra | The holder for extra contextual data that the parser might need. |