问题
I am working on a Media up-loader which uploads images to Server. Before start upload file i want to show small thumbnail of Image.
I used Loader class to load image selected by user & used Canvas to draw image on it.
This works fine with images like jpg & png.
But for bmp file loader class doesn't work.
Is there anyway to load bmp image in Flex & Convert it to BitmapData ??
回答1:
I didn't test the example, but you could try this: Parsing and displaying BMP files via ActionScript And read the comments under the article, there are some links as well.
来源:https://stackoverflow.com/questions/3572535/generating-preview-of-bmp-image