Packagejp.nium.display
Classpublic class ExImageLoader
InheritanceExImageLoader Inheritance ExLoader Inheritance flash.display.Loader
SubclassesCastImageLoader

ExImageLoader クラスは、ExLoader クラスに対してイメージの読み込みや制御の機能拡張を追加した表示オブジェクトクラスです。 ExImageLoader class is a display object class which extends the image reading and control function to the ExLoader class.


Example
  // ExImageLoader インスタンスを作成する
  var image:ExImageLoader = new ExImageLoader();
  

See also

jp.nium.display.getInstanceById()
jp.nium.display.getInstancesByGroup()


Public Properties
 PropertyDefined by
  adjustHeight : Number
読み込む画像データの縦幅を自動調整する際に基準となる値を取得または設定します。
ExImageLoader
  adjustWidth : Number
読み込む画像データの横幅を自動調整する際に基準となる値を取得または設定します。
ExImageLoader
  align : int
画像の基準点を取得または設定します。 Get or set the reference point of the image.
ExImageLoader
 InheritedclassName : String
インスタンスのクラス名を取得します。 Indicates the instance className of the IExDisplayObject.
ExLoader
  contentHeight : Number
[read-only] ロードされたファイルの規格高さを取得します。 Get the standard height of the loaded contents.
ExImageLoader
  contentWidth : Number
[read-only] ロードされたコンテンツの規格幅を取得します。 Get the standard width of the loaded contents.
ExImageLoader
 Inheritedgroup : String
インスタンスのグループ名を取得または設定します。 Indicates the instance group of the IExDisplayObject.
ExLoader
 Inheritedid : String
インスタンスの識別子を取得または設定します。 Indicates the instance id of the IExDisplayObject.
ExLoader
  pixelSnapping : String
Bitmap オブジェクトが最も近いピクセルに吸着されるかどうかを指定します。 Controls whether or not the Bitmap object is snapped to the nearest pixel.
ExImageLoader
  ratio : int
リサイズ時に比率を維持するかどうかを取得または設定します。 Get or set whether to maintain the ratio when resizing it.
ExImageLoader
  smoothing : Boolean
ビットマップを拡大 / 縮小するときにスムージングするかどうかを指定します。 Controls whether or not the bitmap is smoothed when scaled.
ExImageLoader
Public Methods
 MethodDefined by
  
ExImageLoader(initObject:Object = null)
新しい ExImageLoader インスタンスを作成します。 Creates a new ExImageLoader object.
ExImageLoader
  
close():void
Loader インスタンスに対して現在進行中の load() メソッドの処理をキャンセルします。 Cancels a load() method operation that is currently in progress for the Loader instance.
ExImageLoader
  
load(request:URLRequest, context:LoaderContext = null):void
イメージファイルを読み込みます。 Read the image file.
ExImageLoader
  
loadBytes(bytes:ByteArray, context:LoaderContext = null):void
ByteArray オブジェクトに保管されているバイナリデータから読み込みます。 Loads from binary data stored in a ByteArray object.
ExImageLoader
 Inherited
setProperties(parameters:Object):DisplayObject
インスタンスに対して、複数のプロパティを一括設定します。 Setup the several instance properties.
ExLoader
 Inherited
toString():String
指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.
ExLoader
  
unload():void
load() メソッドを使用して読み込まれた、この Loader オブジェクトの子を削除します。 Removes a child of this Loader object that was loaded by using the load() method.
ExImageLoader
Property detail
adjustHeightproperty
adjustHeight:Number  [read-write]

読み込む画像データの縦幅を自動調整する際に基準となる値を取得または設定します。

Implementation
    public function get adjustHeight():Number
    public function set adjustHeight(value:Number):void

See also

adjustWidthproperty 
adjustWidth:Number  [read-write]

読み込む画像データの横幅を自動調整する際に基準となる値を取得または設定します。

Implementation
    public function get adjustWidth():Number
    public function set adjustWidth(value:Number):void

See also

alignproperty 
align:int  [read-write]

画像の基準点を取得または設定します。 Get or set the reference point of the image.

Implementation
    public function get align():int
    public function set align(value:int):void

See also

contentHeightproperty 
contentHeight:Number  [read-only]

ロードされたファイルの規格高さを取得します。 Get the standard height of the loaded contents.

Implementation
    public function get contentHeight():Number
contentWidthproperty 
contentWidth:Number  [read-only]

ロードされたコンテンツの規格幅を取得します。 Get the standard width of the loaded contents.

Implementation
    public function get contentWidth():Number
pixelSnappingproperty 
pixelSnapping:String  [read-write]

Bitmap オブジェクトが最も近いピクセルに吸着されるかどうかを指定します。 Controls whether or not the Bitmap object is snapped to the nearest pixel.

Implementation
    public function get pixelSnapping():String
    public function set pixelSnapping(value:String):void
ratioproperty 
ratio:int  [read-write]

リサイズ時に比率を維持するかどうかを取得または設定します。 Get or set whether to maintain the ratio when resizing it.

Implementation
    public function get ratio():int
    public function set ratio(value:int):void

See also

smoothingproperty 
smoothing:Boolean  [read-write]

ビットマップを拡大 / 縮小するときにスムージングするかどうかを指定します。 Controls whether or not the bitmap is smoothed when scaled.

Implementation
    public function get smoothing():Boolean
    public function set smoothing(value:Boolean):void
Constructor detail
ExImageLoader()constructor
public function ExImageLoader(initObject:Object = null)

新しい ExImageLoader インスタンスを作成します。 Creates a new ExImageLoader object.

Parameters
initObject:Object (default = null)設定したいプロパティを含んだオブジェクトです。
Method detail
close()method
public override function close():void

Loader インスタンスに対して現在進行中の load() メソッドの処理をキャンセルします。 Cancels a load() method operation that is currently in progress for the Loader instance.

load()method 
public override function load(request:URLRequest, context:LoaderContext = null):void

イメージファイルを読み込みます。 Read the image file.

Parameters
request:URLRequest読み込む JPEG、GIF、または PNG ファイルの絶対 URL または相対 URL です。 Absolute or relative URL of the JPEG , GIF or PNG file to read.
 
context:LoaderContext (default = null)LoaderContext オブジェクトです。 The LoaderContext object.
loadBytes()method 
public override function loadBytes(bytes:ByteArray, context:LoaderContext = null):void

ByteArray オブジェクトに保管されているバイナリデータから読み込みます。 Loads from binary data stored in a ByteArray object.

Parameters
bytes:ByteArrayByteArray オブジェクトです。ByteArray の内容としては、Loader クラスがサポートする SWF、GIF、JPEG、PNG のうちの任意のファイル形式を使用できます。 A ByteArray object. The contents of the ByteArray can be any of the file formats supported by the Loader class: SWF, GIF, JPEG, or PNG.
 
context:LoaderContext (default = null)LoaderContext オブジェクトです。LoaderContext オブジェクトの applicationDomain プロパティのみが適用され、LoaderContext オブジェクトの checkPolicyFile および securityDomain プロパティは適用されません。 A LoaderContext object. Only the applicationDomain property of the LoaderContext object applies; the checkPolicyFile and securityDomain properties of the LoaderContext object do not apply.
unload()method 
public override function unload():void

load() メソッドを使用して読み込まれた、この Loader オブジェクトの子を削除します。 Removes a child of this Loader object that was loaded by using the load() method.