The ImageDecodingPolicy class provides values for imageDecodingPolicy in the LoaderContext class.

Variables

@:value(cast 0)@:impl@:enuminlineread 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.

@:value(cast 1)@:impl@:enuminlineread 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.