BitmapData for EaselJS adds AS3 like BitmapData to EaselJS.
JavaScript CSS
Latest commit 5c8bbf4 Jan 14, 2015 @u-kudox Fixed clone()
Permalink
Failed to load latest commit information.
docs Fixed clone() Jan 14, 2015
examples Fixed clone() Jan 14, 2015
lib
src Fixed clone() Jan 14, 2015
.gitignore Setting grunt Jan 23, 2014
Gruntfile.js
README.md Update info Jan 13, 2015
VERSIONS.txt
package.json Fixed clone() Jan 14, 2015

README.md

BitmapData for EaselJS

BitmapData for EaselJS adds AS3 like BitmapData to EaselJS.

Example1

// create BitmapData by HTMLImageElement
_bmd01 = new createjs.BitmapData(HTMLImageElement);
_bitmap01 = new createjs.Bitmap(_bmd01.canvas);
_stage.addChild(_bitmap01);
var width = 200;
var height = 200;
var fillColor = 0x80FF0000;
// create BitmapData by fill
_bmd02 = new createjs.BitmapData(null, width, height, fillColor);
_bitmap02 = new createjs.Bitmap(_bmd02.canvas);
_stage.addChild(_bitmap02);

Example2

_shape = new createjs.Shape();
var g = _shape.graphics;
g.f("rgba(0, 0, 255, 1)").dp(0, 0, 100, 5, 0.6, -90).ef();
_shape.cache(-100, -100, 200, 200);
// get BitmapData from cached DisplayObject
_bmd01 = createjs.BitmapData.getBitmapData(_shape);
var colorTransform = new createjs.ColorTransform(1, 1, 0, 1, 255);
var rect = new createjs.Rectangle(0, 0, _bmd01.width >> 1, _bmd01.height);
_bmd01.colorTransform(rect, colorTransform);
_stage.addChild(_shape);

Properties

  • canvas
  • context
  • name
  • width [read only]
  • height [read only]
  • rect [read only]

Methods

  • applyFilter
  • clearRect
  • clone
  • colorTransform
  • compare
  • copyChannel
  • copyPixels
  • dispose
  • draw
  • drawImage
  • expand
  • fillRect
  • floodFill
  • getBitmapData [static]
  • getColorBoundsRect
  • getPixel
  • getPixel32
  • getPixels
  • histogram
  • hitTest
  • merge
  • noise
  • paletteMap
  • perlinNoise
  • pixelDissolve
  • scroll
  • setPixel
  • setPixel32
  • setPixels
  • threshold
  • toString
  • updateContext
  • updateImageData

Resources

Contact and bug reports

License

MIT License