| Package | ch.unil.cbg.ExpressionView.utilities |
| Class | public class LargeBitmapData |
| Inheritance | LargeBitmapData Object |
| Method | Defined By | ||
|---|---|---|---|
LargeBitmapData(_width:Number = 1, _height:Number = 1)
Constructor. | LargeBitmapData | ||
getData(sourceRect:Rectangle, targetRect:Rectangle):BitmapData
Get the rescaled bitmapdata. | LargeBitmapData | ||
getPixel(x:Number, y:Number):uint
Get the color of a Pixel. | LargeBitmapData | ||
lock():void
Lock largebitmapdata before setting pixels. | LargeBitmapData | ||
setPixel(x:Number, y:Number, value:uint):void
Set the color of a Pixel. | LargeBitmapData | ||
unlock():void
Unlock largebitmapdata after setting pixels. | LargeBitmapData | ||
| height | property |
public var height:Number| width | property |
public var width:Number| LargeBitmapData | () | Constructor |
public function LargeBitmapData(_width:Number = 1, _height:Number = 1)Constructor.
Parameters_width:Number (default = 1) | |
_height:Number (default = 1) |
| getData | () | method |
public function getData(sourceRect:Rectangle, targetRect:Rectangle):BitmapDataGet the rescaled bitmapdata.
Parameters
sourceRect:Rectangle — Part of the bitmap you want to scale
| |
targetRect:Rectangle — Target size
|
BitmapData — Bitmapdata containing a rescaled part of the bitmap
|
| getPixel | () | method |
public function getPixel(x:Number, y:Number):uintGet the color of a Pixel.
Parameters
x:Number — x-Position
| |
y:Number — y-Position
|
uint — uint representing the color
|
| lock | () | method |
public function lock():voidLock largebitmapdata before setting pixels.
| setPixel | () | method |
public function setPixel(x:Number, y:Number, value:uint):voidSet the color of a Pixel.
Parameters
x:Number — x-Position
| |
y:Number — y-Position
| |
value:uint — uint representing the color
|
| unlock | () | method |
public function unlock():voidUnlock largebitmapdata after setting pixels.