Adobe® Flex® 4 Language Reference
Show Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
flash.system 
JPEGLoaderContext 
Packageflash.system
Classpublic class JPEGLoaderContext
InheritanceJPEGLoaderContext Inheritance LoaderContext Inheritance Object

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5, Flash Lite 4

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



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
 InheritedAIR-only allowLoadBytesCodeExecution : 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
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
 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

deblockingFilter

property
public var deblockingFilter:Number = 0.0

Language Version: ActionScript 3.0
Runtime Versions: Flash Player 10, AIR 1.5, Flash Lite 4

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 Versions: Flash Player 10, AIR 1.5, Flash Lite 4

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