(Preview)
Package | spark.utils |
Class | public class MultiDPIBitmapSource |
Inheritance | MultiDPIBitmapSource Object |
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4.5 |
Runtime Versions: | Flash Player 10.2, AIR 2.6 |
More examples
Public Properties
Property | Defined By | ||
---|---|---|---|
constructor : Object
A reference to the class object or constructor function for a given object instance. | Object | ||
source160dpi : Object
The source to use if the Application.runtimeDPI
is DPIClassification.DPI_160. | MultiDPIBitmapSource | ||
source240dpi : Object
The source to use if the Application.runtimeDPI
is DPIClassification.DPI_240. | MultiDPIBitmapSource | ||
source320dpi : Object
The source to use if the Application.runtimeDPI
is DPIClassification.DPI_320. | MultiDPIBitmapSource |
Public Methods
Method | Defined By | ||
---|---|---|---|
Select one of the sourceXXXdpi properties based on the given DPI. | MultiDPIBitmapSource | ||
Indicates whether an object has a specified property defined. | Object | ||
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter. | Object | ||
Indicates whether the specified property exists and is enumerable. | Object | ||
Sets the availability of a dynamic property for loop operations. | Object | ||
Returns the string representation of this object, formatted according to locale-specific conventions. | Object | ||
Returns the string representation of the specified object. | Object | ||
Returns the primitive value of the specified object. | Object |
Property Detail
source160dpi | property |
public var source160dpi:Object
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4.5 |
Runtime Versions: | Flash Player 10.2, AIR 2.6 |
The source to use if the Application.runtimeDPI
is DPIClassification.DPI_160
.
source240dpi | property |
public var source240dpi:Object
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4.5 |
Runtime Versions: | Flash Player 10.2, AIR 2.6 |
The source to use if the Application.runtimeDPI
is DPIClassification.DPI_240
.
source320dpi | property |
public var source320dpi:Object
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4.5 |
Runtime Versions: | Flash Player 10.2, AIR 2.6 |
The source to use if the Application.runtimeDPI
is DPIClassification.DPI_320
.
Method Detail
getSource | () | method |
public function getSource(desiredDPI:Number):Object
Language Version: | ActionScript 3.0 |
Product Version: | Flex 4.5 |
Runtime Versions: | Flash Player 10.2, AIR 2.6 |
Select one of the sourceXXXdpi properties based on the given DPI. This function handles the fallback to different sourceXXXdpi properties if the given one is null. The strategy is to try to choose the next highest property if it is not null, then return a lower property if not null, then just return null.
Parameters
desiredDPI:Number — desired DPI.
|
Object — One of the sourceXXXdpi properties based on the desired DPI.
|
Wed Nov 21 2018, 06:34 AM -08:00