Loading bitmaps?
-
Hi Everyone, I have an application that is designed to load an image from the database. This image is in a compressed form like png, jpeg etc. I was wondering what is the process to loading the bitmap if it is already in memory (ie. not loading it from the disk)? Should I use something like FileMaps or something else? Cheers, Clint :)
-
Hi Everyone, I have an application that is designed to load an image from the database. This image is in a compressed form like png, jpeg etc. I was wondering what is the process to loading the bitmap if it is already in memory (ie. not loading it from the disk)? Should I use something like FileMaps or something else? Cheers, Clint :)
there are a half-dozen articles on CP that handle image I/O. most of them can handle memory-based images. look in the "Bitmap and Palettes" section. -c
Image tools: ThumbNailer, Bobber, TIFFAssembler
-
there are a half-dozen articles on CP that handle image I/O. most of them can handle memory-based images. look in the "Bitmap and Palettes" section. -c
Image tools: ThumbNailer, Bobber, TIFFAssembler
Hi Chris, I did go through them, unfortunately they deal with their own classes. I would like to be able to use CImage (which supports decompressing png) from the MFC library. So what I need to know is how do I tell windows that this compressed png file is in memory and not on disk without having to save a temp file to disk? Cheers, Clint
-
Hi Chris, I did go through them, unfortunately they deal with their own classes. I would like to be able to use CImage (which supports decompressing png) from the MFC library. So what I need to know is how do I tell windows that this compressed png file is in memory and not on disk without having to save a temp file to disk? Cheers, Clint
i'm not familiar with CImage, but the MSDN says its Load method can take an IStream interface. so, you could hook up some kind of IStream-based COM object to read your memory-based image. (yeah, yuck) -c
Image tools: ThumbNailer, Bobber, TIFFAssembler