Class fever.display.BitmapGrid

Description

Use BitmapData as source and implement grid access to bitmap part ( cell ).

Allows to build a bitmap with many icons, or anything else inside and access specific one using grid access.

Method Index

new BitmapGrid()
getBitmap(), getBitmapAt(), getBitmapColumn(), getBitmapRow(), getCellHeight(), getCellWidth(), toString()

Constructor Detail

BitmapGrid

public function BitmapGrid(data:BitmapData, cellWidth:Number, cellHeight:Number)

Constructor.

Parameters

dataBitmapData content source
cellWidthSub bitmap cell's width

Method Detail

getBitmapAt

public function getBitmapAt(v:Point):BitmapData

Returns BitmapData positionned at v position in grid.

getBitmapRow

public function getBitmapRow(rowIndex:Number):BitmapData

Returns a new BitmapData containing row at passed-in rowIndex index.

getBitmapColumn

public function getBitmapColumn(columnIndex:Number):BitmapData

Returns a new BitmapData containing column at passed-in columnIndex index.

getBitmap

public function getBitmap():BitmapData

Returns a source bitmap clone.

getCellWidth

public function getCellWidth():Number

Returns sub bitmap cell width.

getCellHeight

public function getCellHeight():Number

Returns sub bitmap cell height.

toString

public function toString():String

Returns string representation.