Package | ch.unil.cbg.ExpressionView.utilities |
Class | public class LargeBitmapData |
var width:Number = 10000; var height:Number = 10000; largebitmapdata = new LargeBitmapData(width, height); ...
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):BitmapData
Get the rescaled bitmapdata.
ParameterssourceRect: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):uint
Get the color of a Pixel.
Parametersx:Number — x-Position
|
|
y:Number — y-Position
|
uint — uint representing the color
|
lock | () | method |
public function lock():void
Lock largebitmapdata before setting pixels.
setPixel | () | method |
public function setPixel(x:Number, y:Number, value:uint):void
Set the color of a Pixel.
Parametersx:Number — x-Position
|
|
y:Number — y-Position
|
|
value:uint — uint representing the color
|
unlock | () | method |
public function unlock():void
Unlock largebitmapdata after setting pixels.