01-20-2011 07:01 AM
A simple search for the word "screenshot" and you would have found this really usefull post from peter who shared his screenshot function. See: http://supportforums.blackberry.com/t5/Tablet-OS-S
01-20-2011 10:40 AM
If you're trying to get a bitmap of something in your app from your app, consider getSnapshot:
01-20-2011 11:41 AM
John, is that the right link? It goes to spark.utils.BitmapUtil, but doesn't show any function called getSnapshot(). It's also odd that the main list of packages (upper left frame) doesn't even include spark.utils.
I have no idea why that is so (temporary glitch?), but in case it helps here's another page that mirrors the info that was probably there.
Also, in case this particular mx. package works, mx.graphics.ImageSnapshot has two routines that may work, captureBitmapData() and captureImage().
01-20-2011 12:09 PM
var bitmapData:BitmapData = new BitmapData(displayObject.width, displayObject.height, [transparent:Boolean = true], [fillColor:uint = 0xFFFFFFFF]); bitmapData.unlock(); bitmapData.draw(displayObject); bitmapData.lock(); var bitmap:Bitmap = new Bitmap(bitmapData); addChild(bitmap);
01-20-2011 12:29 PM
getSnapshot is a static method, first one in the list of public methods at
01-20-2011 12:43 PM
Initially that was not on the page for me. Only "constructor" and "prototype" were showing, and spark.utils wasn't even in the list.
I was able to get it to show by changing the "Products filter" at the top to "Flash CS5 and earlier" instead of what I had it on before which was "No Flash Professional". It's unfortunate those filter settings aren't exposed in the URL so we can rely on the links we paste to show others the same thing we see.