[Top]
predef::
Image
Image.ANY
|
Method Image.ANY._decode()
- Method
_decode
-
mapping Image.ANY._decode(string data)
object Image.ANY.decode(string data)
object Image.ANY.decode_alpha(string data)
- Description
-
-
Tries heuristics to find the correct method
of decoding the data, then calls that method.
The result of _decode() is a mapping that contains
"type":image data type (ie, "image/jpeg" or similar)
"image":the image object,
"alpha":the alpha channel or 0 if N/A
- Note
-
-
Throws upon failure.
|