Search code examples
apache-flexcanvasloaderbitmapdatabmp

generating preview of BMP Image


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 ??


Solution

  • 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.