Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

updated BitmapImage to support BitmapData sources

  • Loading branch information...
commit f9f57d3fd1eb65718bdf4c5cab46dcb76b9bfdcf 1 parent 7f7d69e
Ben Stucki benstucki authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/reflex/graphics/BitmapImage.as
6 src/reflex/graphics/BitmapImage.as
View
@@ -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();
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.