Permalink
Browse files

updated BitmapImage to support BitmapData sources

  • Loading branch information...
1 parent 7f7d69e commit f9f57d3fd1eb65718bdf4c5cab46dcb76b9bfdcf @benstucki benstucki committed Jul 5, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/reflex/graphics/BitmapImage.as
@@ -84,6 +84,12 @@ package reflex.graphics
measured.height = display.height;
original = display.bitmapData;
draw();
+ } else if (source is BitmapData) {
+ var bitmapdata:BitmapData = source as BitmapData;
+ measured.width = bitmapdata.width;
+ measured.height = bitmapdata.height;
+ original = bitmapdata;
+ draw();
}
}

0 comments on commit f9f57d3

Please sign in to comment.