Turning an ImageSnapshot into an Image in Flex
问题 Using Flex 3, I would like to take an image snapshot such as this: var logoSnapshot:ImageSnapshot = ImageSnapshot.captureImage(logoContainer); and turn it into something that the Image class can use. I see that there is a property called "data", that holds a byteArray, so I guess my question is: How do I take an image that gets stored as a byteArray and convert it to something the Image class can use to display? 回答1: Simpler implementation that should work: var bm : Bitmap = new Bitmap