Packageflash.system
Classpublic class JPEGLoaderContext
InheritanceJPEGLoaderContext Inheritance LoaderContext Inheritance Object

Language version: ActionScript 3.0
Runtime version: AIR 1.5

The JPEGLoaderContext class includes a property for enabling a deblocking filter when loading a JPEG image. The deblocking filter improves an image's quality at higher compression settings by smoothing neighboring pixels. To apply deblocking when loading a JPEG image, create a JPEGLoaderContext object, and set its deblockingFilter property. Then use the JPEGLoaderContext object name as the value of the context parameter of the load() method of the Loader object used to load the image.

The JPEGLoaderContext class extends the LoaderContext class. Set the checkPolicyFile property to true if you need programmatic access to the pixels of the loaded image (for example, if you're using the BitmapData.draw() method). Setting the checkPolicyFile property is not necessary for AIR content running in the application sandbox.

See also

flash.display.Loader.load()
flash.display.BitmapData.draw()


Public Properties
 PropertyDefined by
 InheritedallowCodeImport : Boolean
Specifies whether you can use a Loader object to import content with executable code, such as a SWF file, into the caller's security sandbox.
LoaderContext
 InheritedallowLoadBytesCodeExecution : Boolean
Legacy property, replaced by allowCodeImport, but still supported for compatibility.
LoaderContext
 InheritedapplicationDomain : ApplicationDomain = null
Specifies the application domain to use for the Loader.load() or Loader.loadBytes() method.
LoaderContext
 InheritedcheckPolicyFile : Boolean = false
Specifies whether the application should attempt to download a URL policy file from the loaded object's server before beginning to load the object itself.
LoaderContext
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  deblockingFilter : Number = 0.0
Specifies the strength of the deblocking filter.
JPEGLoaderContext
 InheritedimageDecodingPolicy : String
Specifies whether to decode bitmap image data when it is used or when it is loaded.
LoaderContext
 Inheritedparameters : Object
An Object containing the parameters to pass to the LoaderInfo object of the content.
LoaderContext
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
 InheritedrequestedContentParent : DisplayObjectContainer
The parent to which the Loader will attempt to add the loaded content.
LoaderContext
 InheritedsecurityDomain : SecurityDomain = null
Specifies the security domain to use for a Loader.load() operation.
LoaderContext
Public Methods
 MethodDefined by
  
JPEGLoaderContext(deblockingFilter:Number = 0.0, checkPolicyFile:Boolean = false, applicationDomain:ApplicationDomain = null, securityDomain:SecurityDomain = null)
Creates a new JPEGLoaderContext object with the specified settings.
JPEGLoaderContext
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property detail
deblockingFilterproperty
public var deblockingFilter:Number = 0.0

Language version: ActionScript 3.0
Runtime version: AIR 1.5

Specifies the strength of the deblocking filter. A value of 1.0 applies a full strength deblocking filter, a value of 0.0 disables the deblocking filter.

Constructor detail
JPEGLoaderContext()constructor
public function JPEGLoaderContext(deblockingFilter:Number = 0.0, checkPolicyFile:Boolean = false, applicationDomain:ApplicationDomain = null, securityDomain:SecurityDomain = null)

Language version: ActionScript 3.0
Runtime version: AIR 1.5

Creates a new JPEGLoaderContext object with the specified settings.

Parameters
deblockingFilter:Number (default = 0.0) — Specifies the strength of the deblocking filter. A value of 1.0 applies a full strength deblocking filter, a value of 0.0 disables the deblocking filter.
 
checkPolicyFile:Boolean (default = false) — Specifies whether Flash Player should check for the existence of a URL policy file before loading the object. Does not apply for AIR content running in the application sandbox.
 
applicationDomain:ApplicationDomain (default = null) — Specifies the ApplicationDomain object to use for a Loader object.
 
securityDomain:SecurityDomain (default = null) — Specifies the SecurityDomain object to use for a Loader object.

See also