Code snippet to take minimal area from BitmapData where something is painted. For example user will paint something in your Flex application and you want to take minimal area and do object from this painting. (It’s code from bigger project, some refactoring is needed) protected function makeObjectFromDrawing(bmpData:BitmapData):void { var bmpData1bit:BitmapData = new BitmapData(bmpData.width, bmpData.height, true, [...]
Dec
7
2010
7
2010