flash.system
public class JPEGLoaderContext
继承JPEGLoaderContext Inheritance LoaderContext Inheritance Object

语言版本: ActionScript 3.0
运行时版本: Flash Player 10, AIR 1.5

JPEGLoaderContext 类包括一个属性,用于在加载 JPEG 图像时启用解块滤镜。若要在加载 JPEG 图像时应用解块,请创建一个 JPEGLoaderContext 对象,并设置其 deblockingFilter 属性。然后使用此对象作为用于加载图像的 Loader 对象的 load() 方法中 context 参数的值。

JPEGLoaderContext 类扩展了 LoaderContext 类。如果需要以编程方式访问所加载图像的像素(使用 BitmapData.draw() 方法),则要将 checkPolicyFile 属性设置为 true。(不需要为应用程序沙箱中运行的 AIR 内容设置 checkPolicyFile 属性。)

另请参见

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


公共属性
 属性定义方
 InheritedAIR-only allowLoadBytesCodeExecution : Boolean = false
指定是否可以使用 Loader 对象的 loadBytes() 方法下载具有可执行代码的内容,如 SWF 文件。
LoaderContext
 InheritedapplicationDomain : ApplicationDomain = null
指定用于 Loader.load() 或 Loader.loadBytes() 方法的应用程序域。
LoaderContext
 InheritedcheckPolicyFile : Boolean = false
指定在开始加载对象本身之前,应用程序是否应该尝试从所加载对象的服务器下载 URL 策略文件。
LoaderContext
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
  deblockingFilter : Number = 0.0
指定解块滤镜的长度。
JPEGLoaderContext
 Inheritedprototype : Object
[静态] 对类或函数对象的原型对象的引用。
Object
 InheritedsecurityDomain : SecurityDomain = null
指定用于 Loader.load() 操作的安全域。
LoaderContext
公共方法
 方法定义方
  
JPEGLoaderContext(deblockingFilter:Number = 0.0, checkPolicyFile:Boolean = false, applicationDomain:ApplicationDomain = null, securityDomain:SecurityDomain = null)
创建具有指定设置的新 JPEGLoaderContext 对象。
JPEGLoaderContext
 Inherited
指示对象是否已经定义了指定的属性。
Object
 Inherited
指示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
 Inherited
指示指定的属性是否存在、是否可枚举。
Object
 Inherited
设置循环操作动态属性的可用性。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
 Inherited
返回指定对象的原始值。
Object
属性详细信息
deblockingFilter属性
public var deblockingFilter:Number = 0.0

语言版本: ActionScript 3.0
运行时版本: Flash Player 10, AIR 1.5

指定解块滤镜的长度。值为 1.0 时将应用完整长度的解块滤镜,值为 0.0 时将禁用解块滤镜。

构造函数详细信息
JPEGLoaderContext()构造函数
public function JPEGLoaderContext(deblockingFilter:Number = 0.0, checkPolicyFile:Boolean = false, applicationDomain:ApplicationDomain = null, securityDomain:SecurityDomain = null)

语言版本: ActionScript 3.0
运行时版本: Flash Player 10, AIR 1.5

创建具有指定设置的新 JPEGLoaderContext 对象。

参数
deblockingFilter:Number (default = 0.0) — 指定解块滤镜的长度。值为 1.0 时将应用完整长度的解块滤镜,值为 0.0 时将禁用解块滤镜。
 
checkPolicyFile:Boolean (default = false) — 指定 Flash Player 在加载对象前是否应检查有无 URL 策略文件。
 
applicationDomain:ApplicationDomain (default = null) — 指定要用于 Loader 对象的 ApplicationDomain 对象。
 
securityDomain:SecurityDomain (default = null) — 指定要用于 Loader 对象的 SecurityDomain 对象。

另请参见