Naslaggids voor Adobe ActionScript® 3.0 voor het Adobe® Flash®-platform
Startpagina  |  Lijst met pakketten en klassen verbergen |  Pakketten  |  Klassen  |  Nieuw  |  Index  |  Bijlagen  |  Waarom in het Engels?
Filters: Gegevens ophalen van server...
Gegevens ophalen van server...
spark.primitives 

BitmapImage  - AS3 Flex

Pakketspark.primitives
Klassepublic class BitmapImage
OverervingBitmapImage Inheritance GraphicElement Inheritance EventDispatcher Inheritance Object

Taalversie: ActionScript 3.0
Productversie: Flex 4.0
Runtimeversies: Flash Player 10, AIR 2.0

A BitmapImage element defines a rectangular region in its parent element's coordinate space, filled with bitmap data drawn from a source file or source URL.

Bekijk de voorbeelden

Meer voorbeelden



Openbare eigenschappen
 EigenschapGedefinieerd door
 Inheritedalpha : Number
The level of transparency of the graphic element.
GraphicElement
 InheritedalwaysCreateDisplayObject : Boolean
Specifies that this GraphicElement is to be associated with and be rendered to its own DisplayObject.
GraphicElement
 Inheritedbaseline : Object
The vertical distance in pixels from the anchor target to the control's baseline position.
GraphicElement
 InheritedbaselinePosition : Number
[alleen-lezen] The y-coordinate of the baseline of the first line of text of the component.
GraphicElement
  bitmapData : BitmapData
[alleen-lezen] Returns a copy of the BitmapData object representing the currently loaded image content (unscaled).
BitmapImage
 InheritedblendMode : String
A value from the BlendMode class that specifies which blend mode to use.
GraphicElement
 Inheritedbottom : Object
The vertical distance in pixels from the bottom edge of the component to the anchor target's bottom edge.
GraphicElement
  bytesLoaded : Number
[alleen-lezen] The number of bytes of the image already loaded.
BitmapImage
  bytesTotal : Number
[alleen-lezen] The total image data in bytes loaded or pending load.
BitmapImage
  clearOnLoad : Boolean
Denotes whether or not to clear previous image content prior to loading new content.
BitmapImage
 Inheritedconstructor : Object
Verwijzing naar het klasseobject of de constructorfunctie van een bepaalde objectinstantie.
Object
  contentLoader : IContentLoader
Optional custom image loader (e.g.
BitmapImage
  contentLoaderGrouping : String
Optional content grouping identifier to pass to the an associated IContentLoader instance's load() method.
BitmapImage
 Inheriteddepth : Number
Determines the order in which items inside of containers are rendered.
GraphicElement
 InheriteddesignLayer : DesignLayer
Specifies the optional DesignLayer instance associated with this visual element.
GraphicElement
 InheriteddisplayObject : DisplayObject
[alleen-lezen] The shared DisplayObject where this IGraphicElement is drawn.
GraphicElement
 InheriteddisplayObjectSharingMode : String
Indicates the association between this IGraphicElement and its display objects.
GraphicElement
 InheritedexplicitHeight : Number
Number that specifies the explicit height of the component, in pixels, in the component's coordinates.
GraphicElement
 InheritedexplicitMaxHeight : Number
The maximum recommended height of the component to be considered by the parent during layout.
GraphicElement
 InheritedexplicitMaxWidth : Number
The maximum recommended width of the component to be considered by the parent during layout.
GraphicElement
 InheritedexplicitMinHeight : Number
The minimum recommended height of the component to be considered by the parent during layout.
GraphicElement
 InheritedexplicitMinWidth : Number
The minimum recommended width of the component to be considered by the parent during layout.
GraphicElement
 InheritedexplicitWidth : Number
Number that specifies the explicit width of the component, in pixels, in the component's coordinates.
GraphicElement
  fillMode : String
Determines how the bitmap fills in the dimensions.
BitmapImage
 Inheritedfilters : Array
An indexed array that contains each filter object currently associated with the graphic element.
GraphicElement
 InheritedhasLayoutMatrix3D : Boolean
[alleen-lezen] Contains true if the element has 3D Matrix.
GraphicElement
 Inheritedheight : Number
The height of the graphic element.
GraphicElement
  horizontalAlign : String
The horizontal alignment of the content when it does not have a one-to-one aspect ratio and scaleMode is set to mx.graphics.BitmapScaleMode.LETTERBOX.
BitmapImage
 InheritedhorizontalCenter : Object
The horizontal distance in pixels from the center of the component to the center of the anchor target's content area.
GraphicElement
 Inheritedid : String
The identity of the component.
GraphicElement
 InheritedincludeInLayout : Boolean
Specifies whether this element is included in the layout of the parent.
GraphicElement
 Inheritedis3D : Boolean
[alleen-lezen] Contains true when the element is in 3D.
GraphicElement
 InheritedlayoutDirection : String
Specifies the desired layout direction for an element: one of LayoutDirection.LTR (left to right), LayoutDirection.RTL (right to left), or null (inherit).
GraphicElement
 Inheritedleft : Object
The horizontal distance in pixels from the left edge of the component to the anchor target's left edge.
GraphicElement
 InheritedluminosityClip : Boolean
A property that controls whether the luminosity mask clips the masked content.
GraphicElement
 InheritedluminosityInvert : Boolean
A property that controls the calculation of the RGB color value of a graphic element being masked by a luminosity mask.
GraphicElement
 Inheritedmask : DisplayObject
The calling display object is masked by the specified mask object.
GraphicElement
 InheritedmaskType : String
Defines how the mask is applied to the GraphicElement. The possible values are MaskType.CLIP, MaskType.ALPHA, and MaskType.LUMINOSITY. Clip Masking When masking in clip mode, a clipping masks is reduced to 1-bit.
GraphicElement
 InheritedmaxHeight : Number
The maximum recommended height of the component to be considered by the parent during layout.
GraphicElement
 InheritedmaxWidth : Number
The maximum recommended width of the component to be considered by the parent during layout.
GraphicElement
 InheritedmeasuredHeight : Number
The default height of the component, in pixels.
GraphicElement
 InheritedmeasuredWidth : Number
The default width of the component, in pixels.
GraphicElement
 InheritedmeasuredX : Number
The default measured bounds top-left corner relative to the origin of the element.
GraphicElement
 InheritedmeasuredY : Number
The default measured bounds top-left corner relative to the origin of the element.
GraphicElement
 InheritedminHeight : Number
The minimum recommended height of the component to be considered by the parent during layout.
GraphicElement
 InheritedminWidth : Number
The minimum recommended width of the component to be considered by the parent during layout.
GraphicElement
 Inheritedowner : DisplayObjectContainer
The owner of this IVisualElement object.
GraphicElement
 Inheritedparent : DisplayObjectContainer
[alleen-lezen] The parent container or component for this component.
GraphicElement
 InheritedpercentHeight : Number
Specifies the height of a component as a percentage of its parent's size.
GraphicElement
 InheritedpercentWidth : Number
Specifies the width of a component as a percentage of its parent's size.
GraphicElement
 InheritedpostLayoutTransformOffsets : mx.geom:TransformOffsets
Defines a set of adjustments that can be applied to the object's transform in a way that is invisible to its parent's layout.
GraphicElement
  preliminaryHeight : Number
Provides an estimate to use for height when the "measured" bounds of the image is requested by layout, but the image data has yet to complete loading.
BitmapImage
  preliminaryWidth : Number
Provides an estimate to use for width when the "measured" bounds of the image is requested by layout, but the image data has yet to complete loading.
BitmapImage
 Inheritedright : Object
The horizontal distance in pixels from the right edge of the component to the anchor target's right edge.
GraphicElement
 Inheritedrotation : Number
Indicates the rotation of the element, in degrees, from the transform point.
GraphicElement
 InheritedrotationX : Number
Indicates the x-axis rotation of the element instance, in degrees, from its original orientation relative to the 3D parent container.
GraphicElement
 InheritedrotationY : Number
Indicates the y-axis rotation of the DisplayObject instance, in degrees, from its original orientation relative to the 3D parent container.
GraphicElement
 InheritedrotationZ : Number
Indicates the rotation of the element, in degrees, from the transform point.
GraphicElement
  scaleMode : String
Determines how the image is scaled when fillMode is set to mx.graphics.BitmapFillMode.SCALE.
BitmapImage
 InheritedscaleX : Number
The horizontal scale (percentage) of the element as applied from the transform point.
GraphicElement
 InheritedscaleY : Number
The vertical scale (percentage) of the element as applied from the transform point.
GraphicElement
 InheritedscaleZ : Number
The z scale (percentage) of the element as applied from the transform point.
GraphicElement
  smooth : Boolean
Hiermee geeft u op of er een algoritme voor vloeiend maken moet worden toegepast op de bitmapafbeelding.
BitmapImage
  smoothingQuality : String
Determines how the image is down-scaled.
BitmapImage
  source : Object
The source used for the bitmap fill.
BitmapImage
  sourceHeight : Number
[alleen-lezen] Provides the unscaled height of the original image data.
BitmapImage
  sourceWidth : Number
[alleen-lezen] Provides the unscaled width of the original image data.
BitmapImage
 Inheritedtop : Object
The vertical distance in pixels from the top edge of the component to the anchor target's top edge.
GraphicElement
 Inheritedtransform : flash.geom:Transform
Een object met eigenschappen die betrekking hebben op de matrix van een weergaveobject, de kleurtransformatie en de pixelbeperkingen.
GraphicElement
 InheritedtransformX : Number
The x position transform point of the element.
GraphicElement
 InheritedtransformY : Number
The y position transform point of the element.
GraphicElement
 InheritedtransformZ : Number
The z position transform point of the element.
GraphicElement
  trustedSource : Boolean
[alleen-lezen] A read-only flag denoting whether the currently loaded content is considered loaded form a source whose security policy allows for cross domain image access.
BitmapImage
  verticalAlign : String
The vertical alignment of the content when it does not have a one-to-one aspect ratio and scaleMode is set to mx.graphics.BitmapScaleMode.LETTERBOX.
BitmapImage
 InheritedverticalCenter : Object
The vertical distance in pixels from the center of the component to the center of the anchor target's content area.
GraphicElement
 Inheritedvisible : Boolean
Controls the visibility of this visual element.
GraphicElement
 Inheritedwidth : Number
The width of the graphic element.
GraphicElement
 Inheritedx : Number
The x position of the graphic element.
GraphicElement
 Inheritedy : Number
The y position of the graphic element.
GraphicElement
 Inheritedz : Number
The z position of the graphic element.
GraphicElement
Beschermde eigenschappen
 EigenschapGedefinieerd door
 InheriteddrawnDisplayObject : DisplayObject
[alleen-lezen] The actual DisplayObject that is drawn into by the GraphicElement.
GraphicElement
 InheriteddrawX : Number
[alleen-lezen] The x position where the element should be drawn.
GraphicElement
 InheriteddrawY : Number
[alleen-lezen] The y position where the element should be drawn.
GraphicElement
 InheritedhasComplexLayoutMatrix : Boolean
[alleen-lezen] Returns true if the GraphicElement has any non-translation (x,y) transform properties
GraphicElement
 InheritedlayoutFeatures : AdvancedLayoutFeatures
Contain all of the implementation details of how the GraphicElement implements transform and layering support.
GraphicElement
 InheritedneedsDisplayObject : Boolean
[alleen-lezen] True if the element requires an exclusive DisplayObject.
GraphicElement
Openbare methoden
 MethodeGedefinieerd door
  
Constructor.
BitmapImage
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registreert een gebeurtenislistenerobject bij een object EventDispatcher, zodat de listener een melding van een gebeurtenis ontvangt.
EventDispatcher
 Inherited
Returns true if this IGraphicElement is compatible and can share display objects with the next IGraphicElement in the sequence.
GraphicElement
 Inherited
Returns true if this IGraphicElement is compatible and can share display objects with the previous IGraphicElement in the sequence.
GraphicElement
 Inherited
Creates a new DisplayObject where this IGraphicElement is drawn.
GraphicElement
 Inherited
Verzendt een gebeurtenis naar de gebeurtenisstroom.
EventDispatcher
 Inherited
getBoundsXAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
Returns the x coordinate of the element's bounds at the specified element size.
GraphicElement
 Inherited
getBoundsYAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
Returns the y coordinate of the element's bounds at the specified element size.
GraphicElement
 Inherited
getLayoutBoundsHeight(postLayoutTransform:Boolean = true):Number
Returns the element's layout height.
GraphicElement
 Inherited
getLayoutBoundsWidth(postLayoutTransform:Boolean = true):Number
Returns the element's layout width.
GraphicElement
 Inherited
getLayoutBoundsX(postLayoutTransform:Boolean = true):Number
Returns the x coordinate that the element uses to draw on screen.
GraphicElement
 Inherited
getLayoutBoundsY(postLayoutTransform:Boolean = true):Number
Returns the y coordinate that the element uses to draw on screen.
GraphicElement
 Inherited
Returns the transform matrix that is used to calculate the component's layout relative to its siblings.
GraphicElement
 Inherited
Returns the layout transform Matrix3D for this element.
GraphicElement
 Inherited
getMaxBoundsHeight(postLayoutTransform:Boolean = true):Number
Returns the element's maximum height.
GraphicElement
 Inherited
getMaxBoundsWidth(postLayoutTransform:Boolean = true):Number
Returns the element's maximum width.
GraphicElement
 Inherited
getMinBoundsHeight(postLayoutTransform:Boolean = true):Number
Returns the element's minimum height.
GraphicElement
 Inherited
getMinBoundsWidth(postLayoutTransform:Boolean = true):Number
Returns the element's minimum width.
GraphicElement
 Inherited
getPreferredBoundsHeight(postLayoutTransform:Boolean = true):Number
Returns the element's preferred height.
GraphicElement
 Inherited
getPreferredBoundsWidth(postLayoutTransform:Boolean = true):Number
Returns the element's preferred width.
GraphicElement
 Inherited
Controleert of het object EventDispatcher listeners heeft geregistreerd voor een specifiek type gebeurtenis.
EventDispatcher
 Inherited
Geeft aan of voor een object een opgegeven eigenschap is gedefinieerd.
Object
 Inherited
Called automatically by the MXML compiler when the GraphicElement is created using an MXML tag.
GraphicElement
 Inherited
Calling this method results in a call to the elements's validateDisplayList() method before the display list is rendered.
GraphicElement
 Inherited
An element must call this method when its layoutDirection changes or when its parent's layoutDirection changes.
GraphicElement
 Inherited
Calling this method results in a call to the elements's validateProperties() method before the display list is rendered.
GraphicElement
 Inherited
Calling this method results in a call to the elements's validateSize() method before the display list is rendered.
GraphicElement
 Inherited
Geeft aan of een instantie van de klasse Object zich in de prototypeketen van het object bevindt dat als parameter is opgegeven.
Object
 Inherited
Converts the point object from the object's (local) coordinates to the Stage (global) coordinates.
GraphicElement
 Inherited
Called by IGraphicElementContainer when an IGraphicElement is added to or removed from the host component.
GraphicElement
 Inherited
Geeft aan of de opgegeven eigenschap bestaat en kan worden opgesomd.
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Verwijdert een listener uit het object EventDispatcher.
EventDispatcher
 Inherited
setLayoutBoundsPosition(newBoundsX:Number, newBoundsY:Number, postLayoutTransform:Boolean = true):void
Sets the coordinates that the element uses to draw on screen.
GraphicElement
 Inherited
setLayoutBoundsSize(width:Number, height:Number, postLayoutTransform:Boolean = true):void
Sets the layout size of the element.
GraphicElement
 Inherited
setLayoutMatrix(value:Matrix, invalidateLayout:Boolean):void
Sets the transform Matrix that is used to calculate the component's layout size and position relative to its siblings.
GraphicElement
 Inherited
setLayoutMatrix3D(value:Matrix3D, invalidateLayout:Boolean):void
Sets the transform Matrix3D that is used to calculate the component's layout size and position relative to its siblings.
GraphicElement
 Inherited
Stelt de beschikbaarheid van een dynamische eigenschap voor lusbewerkingen in.
Object
 Inherited
Determines whether this element can draw itself to the sharedDisplayObject of the sequence.
GraphicElement
 Inherited
Geeft de tekenreeksweergave van dit object weer, geformatteerd volgens de locatiespecifieke conventies.
Object
 Inherited
Retourneert een tekenreeksrepresentatie van het opgegeven object.
Object
 Inherited
transformAround(transformCenter:Vector3D, scale:Vector3D = null, rotation:Vector3D = null, translation:Vector3D = null, postLayoutScale:Vector3D = null, postLayoutRotation:Vector3D = null, postLayoutTranslation:Vector3D = null, invalidateLayout:Boolean = true):void
A utility method to update the rotation, scale, and translation of the transform while keeping a particular point, specified in the component's own coordinate space, fixed in the parent's coordinate space.
GraphicElement
 Inherited
transformPointToParent(localPosition:Vector3D, position:Vector3D, postLayoutPosition:Vector3D):void
A utility method to transform a point specified in the local coordinates of this object to its location in the object's parent's coordinates.
GraphicElement
 Inherited
Called by the IGraphicElementContainer to redraw this element in its displayObject property.
GraphicElement
 Inherited
Validates and updates the properties and layout of this object by immediately calling validateProperties(), validateSize(), and validateDisplayList(), if necessary.
GraphicElement
 Inherited
Used by layout logic to validate the properties of a component by calling the commitProperties() method.
GraphicElement
 Inherited
Called by the IGraphicElementContainer to validate the size of this element.
GraphicElement
 Inherited
Retourneert de primitieve waarde van het opgegeven object.
Object
 Inherited
Controleert of een gebeurtenislistener is geregistreerd bij dit object EventDispatcher of een van de voorouders voor het opgegeven type gebeurtenis.
EventDispatcher
Beschermde methoden
 MethodeGedefinieerd door
 Inherited
Determines if the call to the measure() method can be skipped.
GraphicElement
  
[overschrijven] Processes the properties set on the element.
BitmapImage
 Inherited
getStrokeExtents(postLayoutTransform:Boolean = true):Rectangle
Returns the amount of pixels occupied by the stroke on each side of the element's bounds.
GraphicElement
 Inherited
Utility method that notifies the host that this element has changed and needs its layer to be updated.
GraphicElement
 Inherited
Helper method to invalidate parent size and display list if this object affects its layout (includeInLayout is true).
GraphicElement
  
[overschrijven] Calculates the default size of the element.
BitmapImage
 Inherited
Used for the implementation of the ILayoutElement interface, returns the explicit measured height pre-transform.
GraphicElement
 Inherited
Used for the implementation of the ILayoutElement interface, returns the explicit of measured width pre-transform.
GraphicElement
 Inherited
transformHeightForLayout(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
Transform the element's size.
GraphicElement
 Inherited
transformWidthForLayout(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
Transform the element's size.
GraphicElement
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
[overschrijven] Draws the element and/or sizes and positions its content.
BitmapImage
Gebeurtenissen
 Gebeurtenis Overzicht Gedefinieerd door
 Inherited[uitgezonden gebeurtenis] Wordt verzonden wanneer Flash Player of de AIR-toepassing de besturingssysteemfocus krijgt en actief wordt.EventDispatcher
  Dispatched when content loading is complete.BitmapImage
 Inherited[uitgezonden gebeurtenis] Wordt verzonden wanneer Flash Player of de AIR-toepassing de systeemfocus verliest en inactief wordt.EventDispatcher
  Dispatched when a network request is made over HTTP and Flash Player or AIR can detect the HTTP status code.BitmapImage
  Dispatched when an input/output error occurs.BitmapImage
  Dispatched when content is loading.BitmapImage
  Dispatched when content loading is complete.BitmapImage
  Dispatched when a security error occurs.BitmapImage
Eigenschapdetails

bitmapData

eigenschap
bitmapData:BitmapData  [alleen-lezen]

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 2.0

Returns a copy of the BitmapData object representing the currently loaded image content (unscaled). This property is null for untrusted cross domain content.

De standaardwaarde is null.



Implementatie
    public function get bitmapData():BitmapData

bytesLoaded

eigenschap 
bytesLoaded:Number  [alleen-lezen]

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 2.0

The number of bytes of the image already loaded. Only relevant for images loaded by request URL.

De standaardwaarde is NaN.



Implementatie
    public function get bytesLoaded():Number

bytesTotal

eigenschap 
bytesTotal:Number  [alleen-lezen]

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 2.0

The total image data in bytes loaded or pending load. Only relevant for images loaded by request URL.

De standaardwaarde is NaN.



Implementatie
    public function get bytesTotal():Number

clearOnLoad

eigenschap 
clearOnLoad:Boolean

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 2.0

Denotes whether or not to clear previous image content prior to loading new content.

De standaardwaarde is true.



Implementatie
    public function get clearOnLoad():Boolean
    public function set clearOnLoad(value:Boolean):void

contentLoader

eigenschap 
contentLoader:IContentLoader

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 1.5

Optional custom image loader (e.g. image cache or queue) to associate with content loader client.

De standaardwaarde is null.



Implementatie
    public function get contentLoader():IContentLoader
    public function set contentLoader(value:IContentLoader):void

contentLoaderGrouping

eigenschap 
contentLoaderGrouping:String

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 1.5

Optional content grouping identifier to pass to the an associated IContentLoader instance's load() method. This property is only considered when a valid contentLoader is assigned.



Implementatie
    public function get contentLoaderGrouping():String
    public function set contentLoaderGrouping(value:String):void

fillMode

eigenschap 
fillMode:String

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

Determines how the bitmap fills in the dimensions. If you set the value of this property in a tag, use the string (such as "repeat"). If you set the value of this property in ActionScript, use the constant (such as mx.graphics.BitmapFillMode.CLIP).

When set to BitmapFillMode.CLIP ("clip"), the bitmap ends at the edge of the region.

When set to BitmapFillMode.REPEAT ("repeat"), the bitmap repeats to fill the region.

When set to BitmapFillMode.SCALE ("scale"), the bitmap stretches to fill the region.

De standaardwaarde is BitmapFillMode.SCALE.



Implementatie
    public function get fillMode():String
    public function set fillMode(value:String):void

Verwante API-elementen

horizontalAlign

eigenschap 
horizontalAlign:String

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

The horizontal alignment of the content when it does not have a one-to-one aspect ratio and scaleMode is set to mx.graphics.BitmapScaleMode.LETTERBOX.

Can be one of HorizontalAlign.LEFT ("left"), HorizontalAlign.RIGHT ("right"), or HorizontalAlign.CENTER ("center").

This property is only applicable when fillMode is set to to mx.graphics.BitmapFillMode.SCALE ("scale").

De standaardwaarde is HorizontalAlign.CENTER.



Implementatie
    public function get horizontalAlign():String
    public function set horizontalAlign(value:String):void

Verwante API-elementen

preliminaryHeight

eigenschap 
preliminaryHeight:Number

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 1.5

Provides an estimate to use for height when the "measured" bounds of the image is requested by layout, but the image data has yet to complete loading. When NaN the measured height is 0 until the image has finished loading.

De standaardwaarde is NaN.



Implementatie
    public function get preliminaryHeight():Number
    public function set preliminaryHeight(value:Number):void

preliminaryWidth

eigenschap 
preliminaryWidth:Number

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 1.5

Provides an estimate to use for width when the "measured" bounds of the image is requested by layout, but the image data has yet to complete loading. When NaN the measured width is 0 until the image has finished loading.

De standaardwaarde is NaN.



Implementatie
    public function get preliminaryWidth():Number
    public function set preliminaryWidth(value:Number):void

scaleMode

eigenschap 
scaleMode:String

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10.1, AIR 2.0

Determines how the image is scaled when fillMode is set to mx.graphics.BitmapFillMode.SCALE.

When set to mx.graphics.BitmapScaleMode.STRETCH ("stretch"), the image is stretched to fit.

When set to BitmapScaleMode.LETTERBOX ("letterbox"), the image is scaled with respect to the original unscaled image's aspect ratio.

When set to BitmapScaleMode.ZOOM ("zoom"), the image is scaled to fit with respect to the original unscaled image's aspect ratio. This results in cropping on one axis.

De standaardwaarde is BitmapScaleMode.STRETCH.



Implementatie
    public function get scaleMode():String
    public function set scaleMode(value:String):void

Verwante API-elementen

smooth

eigenschap 
smooth:Boolean

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

Hiermee geeft u op of er een algoritme voor vloeiend maken moet worden toegepast op de bitmapafbeelding.

Wanneer de waarde false is, worden geschaalde (vergrote) bitmapafbeeldingen gerenderd met een algoritme op basis van de dichtstbijzijnde pixels en zien ze er korrelig uit. Wanneer de waarde true is, worden geschaalde (vergrote) bitmapafbeeldingen met een bilineair algoritme gerenderd. Rendering op basis van de dichtstbijzijnde pixels is doorgaans sneller.

De standaardwaarde is false.



Implementatie
    public function get smooth():Boolean
    public function set smooth(value:Boolean):void

smoothingQuality

eigenschap 
smoothingQuality:String

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 1.5

Determines how the image is down-scaled. When set to BitmapSmoothingQuality.HIGH, the image is resampled (if data is from a trusted source) to achieve a higher quality result. If set to BitmapSmoothingQuality.DEFAULT, the default stage quality for scaled bitmap fills is used.

De standaardwaarde is BitmapSmoothingQuality.DEFAULT.



Implementatie
    public function get smoothingQuality():String
    public function set smoothingQuality(value:String):void

source

eigenschap 
source:Object

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

The source used for the bitmap fill. The fill can render from various graphical sources, including the following:

  • A Bitmap or BitmapData instance.
  • A class representing a subclass of DisplayObject. The BitmapFill instantiates the class and creates a bitmap rendering of it.
  • An instance of a DisplayObject. The BitmapFill copies it into a Bitmap for filling.
  • The name of an external image file.

If you use an image file for the source, it can be of type PNG, GIF, or JPG.

To specify an embedded image source, you can use the @Embed directive, as the following example shows:

      source="@Embed('<i>image_location</i>')"
      

The image location can be specified via a URL, URLRequest, or file reference. If it is a file reference, its location is relative to the location of the file that is being compiled.

The BitmapImage class is designed to work with embedded images or images that are loaded at run time.

If the source is a Bitmap or BitmapData instance or is an external image file, it is the responsibility of the caller to dispose of the source once it is no longer needed. If ImageLoader created the BitmapData instance, then it will dispose of the BitmapData once the source has changed.

Deze eigenschap kan als de bron voor gegevensbinding worden gebruikt. Wanneer deze eigenschap wordt gewijzigd, wordt de gebeurtenis sourceChanged verzonden.



Implementatie
    public function get source():Object
    public function set source(value:Object):void

Verwante API-elementen

sourceHeight

eigenschap 
sourceHeight:Number  [alleen-lezen]

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 1.5

Provides the unscaled height of the original image data.

De standaardwaarde is NaN.



Implementatie
    public function get sourceHeight():Number

sourceWidth

eigenschap 
sourceWidth:Number  [alleen-lezen]

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 1.5

Provides the unscaled width of the original image data.

De standaardwaarde is NaN.



Implementatie
    public function get sourceWidth():Number

trustedSource

eigenschap 
trustedSource:Boolean  [alleen-lezen]

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 9, AIR 1.5

A read-only flag denoting whether the currently loaded content is considered loaded form a source whose security policy allows for cross domain image access. When false, advanced bitmap operations such as high quality scaling, and tiling are not permitted. This flag is set once an image has been fully loaded.

De standaardwaarde is true.



Implementatie
    public function get trustedSource():Boolean

verticalAlign

eigenschap 
verticalAlign:String

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 1.5

The vertical alignment of the content when it does not have a one-to-one aspect ratio and scaleMode is set to mx.graphics.BitmapScaleMode.LETTERBOX.

Can be one of VerticalAlign.TOP ("top"), VerticalAlign.BOTTOM ("bottom"), or VerticalAlign.MIDDLE ("middle").

This property is only applicable when scaleMode is set to to BitmapFillMode.SCALE ("scale").

De standaardwaarde is VerticalAlign.MIDDLE.



Implementatie
    public function get verticalAlign():String
    public function set verticalAlign(value:String):void

Verwante API-elementen

Constructordetails

BitmapImage

()Constructor
public function BitmapImage()

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

Constructor.

Methodedetails

commitProperties

()methode
override protected function commitProperties():void

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

Processes the properties set on the element. This is an advanced method that you might override when creating a subclass.

You do not call this method directly. Flex calls the commitProperties() method when you use the addElement() method to add an element to an IGraphicElementContainer container such as Group, or when you call the invalidateProperties() method of the element. Calls to the commitProperties() method occur before calls to the measure() method. This lets you set property values that might be used by the measure() method.

Some elements have properties that interact with each other. It is often best at startup time to process all of these properties at one time to avoid duplicating work.

measure

()methode 
override protected function measure():void

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

Calculates the default size of the element. This is an advanced method that you might override when creating a subclass of GraphicElement.

You do not call this method directly. Flex calls the measure() method when the element is added to an IGraphicElementContainer container such as Group using the addElement() method, and when the element's invalidateSize() method is called.

By default you set both explicit height and explicit width of an element, Flex does not call the measure() method, even if you explicitly call the invalidateSize() method. To override this behavior, override skipMeasure() method.

In your override of this method, you must set the measuredWidth and measuredHeight properties to define the default size. You can optionally set the measuredX and measuredY properties to define the default measured bounds top-left corner relative to the origin of the element.

The conceptual point of measure() is for the element to provide its own natural or intrinsic bounds as a default. Therefore, the measuredWidth and measuredHeight properties should be determined by factors such as:

  • The amount of text the component needs to display.
  • The size of a JPEG image that the component displays.

In some cases, there is no intrinsic way to determine default values. For example, a simple GreenCircle element might simply set measuredWidth = 100 and measuredHeight = 100 in its measure() method to provide a reasonable default size. In other cases, such as a TextArea, an appropriate computation (such as finding the right width and height that would just display all the text and have the aspect ratio of a Golden Rectangle) might be too time-consuming to be worthwhile.

The default implementation of measure() sets the values of the measuredWidth, measuredHeight, measuredX, and measuredY properties to 0.

updateDisplayList

()methode 
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void

Taalversie: ActionScript 3.0
Productversie: Flex 4
Runtimeversies: Flash Player 10, AIR 1.5

Draws the element and/or sizes and positions its content. This is an advanced method that you might override when creating a subclass of GraphicElement.

You do not call this method directly. Flex calls the updateDisplayList() method when the component is added to an IGraphicElementContainer container such as Group using the addElement() method, and when the element's invalidateDisplayList() method is called.

This method is where you would do programmatic drawing using methods on the elements's displayObject such as graphics.drawRect().

Parameters

unscaledWidth:Number — Specifies the width of the component, in pixels, in the component's coordinates, regardless of the value of the scaleX property of the component.
 
unscaledHeight:Number — Specifies the height of the component, in pixels, in the component's coordinates, regardless of the value of the scaleY property of the component.

Gebeurtenisdetails

complete

Gebeurtenis
Type gebeurtenisobject: flash.events.Event
eigenschap Event.type = flash.events.Event.COMPLETE

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 2.0

Dispatched when content loading is complete. This event is only dispatched for url and ByteArray based sources (those sources requiring a Loader).

Note that for content loaded via Loader, both ready and complete events are dispatched.

For other source types such as embeds, only ready is dispatched.

De constante Event.COMPLETE definieert de waarde van de eigenschap type van een complete-gebeurtenisobject.

Deze gebeurtenis heeft de volgende eigenschappen:

EigenschapWaarde
bubblesfalse
cancelablefalse; er is geen standaardgedrag om te annuleren.
currentTargetHet object dat het gebeurtenisobject actief verwerkt met een gebeurtenislistener.
targetHet netwerkobject dat klaar is met laden.

httpStatus

Gebeurtenis  
Type gebeurtenisobject: flash.events.HTTPStatusEvent
eigenschap HTTPStatusEvent.type = flash.events.HTTPStatusEvent.HTTP_STATUS

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 2.0

Dispatched when a network request is made over HTTP and Flash Player or AIR can detect the HTTP status code.

De constante HTTPStatusEvent.HTTP_STATUS definieert de waarde van de eigenschap type van een httpStatus-gebeurtenisobject.

Deze gebeurtenis heeft de volgende eigenschappen:

EigenschapWaarde
bubblesfalse
cancelablefalse; er is geen standaardgedrag om te annuleren.
currentTargetHet object dat het gebeurtenisobject actief verwerkt met een gebeurtenislistener.
statusDe HTTP-statuscode die door de server wordt geretourneerd.
targetHet netwerkobject dat de HTTP-statuscode ontvangt.

ioError

Gebeurtenis  
Type gebeurtenisobject: flash.events.IOErrorEvent
eigenschap IOErrorEvent.type = flash.events.IOErrorEvent.IO_ERROR

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 2.0

Dispatched when an input/output error occurs.

Definieert de waarde van de eigenschap type van een gebeurtenisobject ioError.

Deze gebeurtenis heeft de volgende eigenschappen:

EigenschapWaarde
bubblesfalse
cancelablefalse; er is geen standaardgedrag om te annuleren.
currentTargetHet object dat het gebeurtenisobject actief verwerkt met een gebeurtenislistener.
errorIDEen referentienummer dat aan de specifieke fout is gekoppeld (alleen AIR).
targetHet netwerkobject dat de invoer-/uitvoerfout ondervindt.
textTekst die moet worden weergegeven als foutbericht.

Verwante API-elementen

progress

Gebeurtenis  
Type gebeurtenisobject: flash.events.ProgressEvent
eigenschap ProgressEvent.type = flash.events.ProgressEvent.PROGRESS

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 2.0

Dispatched when content is loading.

Note: The progress event is not guaranteed to be dispatched. The complete event may be received, without any progress events being dispatched. This can happen when the loaded content is a local file.

Definieert de waarde van de eigenschap type van een gebeurtenisobject progress.

Deze gebeurtenis heeft de volgende eigenschappen:

EigenschapWaarde
bubblesfalse
bytesLoadedHet aantal items of bytes dat wordt geladen wanneer de listener de gebeurtenis verwerkt.
bytesTotalHet totale aantal items of bytes dat uiteindelijk wordt geladen wanneer het laadproces is voltooid.
cancelablefalse; er is geen standaardgedrag om te annuleren.
currentTargetHet object dat het gebeurtenisobject actief verwerkt met een gebeurtenislistener.
targetHet object dat de voortgang rapporteert.

ready

Gebeurtenis  
Type gebeurtenisobject: mx.events.FlexEvent
eigenschap FlexEvent.type = mx.events.FlexEvent.READY

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 2.0

Dispatched when content loading is complete. Unlike the complete event, this event is dispatched for all source types.

Note that for content loaded via Loader, both ready and complete events are dispatched.

For other source types such as embeds, only ready is dispatched.

The FlexEvent.READY constant defines the value of the type property of the event object for a ready event. This event is dispatched by the BitmapImage and spark Image classes to denote that the assigned image source has fully loaded.

The properties of the event object have the following values:

PropertyValue
bubblesfalse
cancelablefalse
returnValuenull
currentTargetThe Object that defines the event listener that handles the event. For example, if you use myImage.addEventListener() to register an event listener, myImage is the value of the currentTarget.
targetThe Object that dispatched the event; it is not always the Object listening for the event. Use the currentTarget property to always access the Object listening for the event.
TypeFlexEvent.READY

securityError

Gebeurtenis  
Type gebeurtenisobject: flash.events.SecurityErrorEvent
eigenschap SecurityErrorEvent.type = flash.events.SecurityErrorEvent.SECURITY_ERROR

Taalversie: ActionScript 3.0
Productversie: Flex 4.5
Runtimeversies: Flash Player 10, AIR 2.0

Dispatched when a security error occurs.

De constante SecurityErrorEvent.SECURITY_ERROR definieert de waarde van de eigenschap type van een gebeurtenisobject securityError.

Deze gebeurtenis heeft de volgende eigenschappen:

EigenschapWaarde
bubblesfalse
cancelablefalse; er is geen standaardgedrag om te annuleren.
currentTargetHet object dat het gebeurtenisobject actief verwerkt met een gebeurtenislistener.
targetHet netwerkobject dat de beveiligingsfout rapporteert.
textTekst die moet worden weergegeven als foutbericht.

Verwante API-elementen

BitmapImageExample.mxml
<?xml version="1.0" encoding="utf-8"?>
<!-- BitmapGraphicExample.mxml -->
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">

    <s:Panel title="Bitmap Graphic Example"
            width="75%" height="75%"
            horizontalCenter="0" verticalCenter="0">
        <s:Group left="10" right="10" top="10" bottom="10">
            <!-- Single image, not resized, not repeated. -->
            <s:Graphic x="0" y="0">             
                <s:BitmapImage id="bg1" source="@Embed('assets/AirIcon12x12.gif')" fillMode="clip"/>
            </s:Graphic>

            <!-- Single image, scaled to fit specified dimensions. -->
            <s:Graphic x="150" y="0">
                <s:BitmapImage id="bg2" source="@Embed('assets/AirIcon12x12.gif')" width="60" height="60" fillMode="scale"/>
            </s:Graphic>

            <!-- Repeated image to fit specified dimensions. -->
            <s:Graphic x="300" y="0">
                <s:BitmapImage id="bg3" source="@Embed('assets/AirIcon12x12.gif')" width="120" height="120" fillMode="repeat"/>
            </s:Graphic>
        </s:Group>
    </s:Panel>

</s:Application>




[ X ]Waarom in het Engels?
Sommige inhoud van de Naslaggids voor ActionScript 3.0 staat in het Engels

Niet alle onderdelen van de Naslaggids voor ActionScript 3.0 zijn in alle talen vertaald. Wanneer een taalelement niet is vertaald, wordt het in het Engels weergegeven. Zo is de klasse ga.controls.HelpBox niet in elke taal vertaald. In de Nederlandse versie van de naslaggids wordt de klasse ga.controls.HelpBox bijvoorbeeld in het Engels weergegeven.