flexlib :: library Documentation | All Packages | All Classes | Index | Frames No Frames |
IcnsParser

Package | flexlib.controls.iconLoaderClasses
Class | public class IcnsParser
Inheritance | IcnsParser Object
Implements | IIconParser

A parser for Macintosh .icns files. Supports the all 32 bit icons: 'is32', 'il32', 'ih32', 'it32', and their associated masks.

Public Properties

| Property | Defined By
--- | --- | ---
|  | data : ByteArray The raw data from the icon file. | IcnsParser
|  | sizes : Array [read-only] The list of icon sizes in decreasing order. | IcnsParser
|  | validIcon : Boolean [read-only] Indicates that this parser contains valid icon data. | IcnsParser

Public Methods

| Method | Defined By
--- | --- | ---
|  | IcnsParser() Constructor | IcnsParser
|  | getIconForSize(s:int):BitmapData Returns an icon whose width does not exceed s. | IcnsParser
|  | parse():void Parse the raw icon data. | IcnsParser

Property Detail

data | property

`data:ByteArray`

The raw data from the icon file.

Implementation
`public function get data():ByteArray`
`public function set data(value:ByteArray):void`

sizes | property |

`sizes:Array` [read-only]

The list of icon sizes in decreasing order.

Implementation
`public function get sizes():Array`

validIcon | property |

`validIcon:Boolean` [read-only]

Indicates that this parser contains valid icon data. <p>Implementations should return <codeph>true</codeph> if an icon file has been parsed successfully, and it contains at least one valid icon</p>

Implementation
`public function get validIcon():Boolean`
Constructor Detail

IcnsParser | () | Constructor

`public function IcnsParser()`

Constructor

Method Detail

getIconForSize | () | method

`public function getIconForSize(s:int):BitmapData`

Returns an icon whose width does not exceed <codeph>s</codeph>.

Parameters

| `s:int`

Returns

| `BitmapData`

parse | () | method |

`public function parse():void`

Parse the raw icon data.

Mercredi Juillet 6 2011, 09:45 PM +02:00