View source
enum abstract ImageDecodingPolicy(Null<Int>)
package openfl.system
Available on AIR, Android, HashLink, Linux, Neko, Windows, iOS, macOS
The ImageDecodingPolicy class provides values for imageDecodingPolicy
in
the LoaderContext class.
Variables
inlineread onlyON_DEMAND:ImageDecodingPolicy = 0
Specifies that the image being loaded will be decoded when needed and that the decoded data may be flushed at will by the system. If flushed, it will be re-decoded as needed.
inlineread onlyON_LOAD:ImageDecodingPolicy = 1
Specifies that the image being loaded will be decoded on load, prior to
the complete
event being sent. The decoded image data is cached, and
may be flushed at will by the system. If flushed, it will be re-decoded
as needed.