James2007
February 5th, 2007, 01:39 PM
Ironically, in the course of writing this program, I may have found a bug in Paint and Windows Picture-Fax Viewer. (Although I have already notified Microsoft)
Take a look if you will.
(Note: The bug in Paint and Picture-Fax I am speaking of is that my program saves valid bitmaps, but Picture-Fax cannot view them. Paint can open them, but the colors are messed up. However, I write the data as stated valid for a 24 bit color bitmap, and MS's own LoadImage API correctly loads the bitmaps I write out. How do I know that? I am using LoadImage and I can reload those bitmaps that I save out.)
The 'color distortion' associated from 'shrinking' bitmaps with StretchDIBits or StretchBlt in certain situations is non-existent in this application. I wrote my own custom 'Scale' function for my Image class.
This application is tiny at only 14KB. (14336 bytes) :)
Take a look if you will.
(Note: The bug in Paint and Picture-Fax I am speaking of is that my program saves valid bitmaps, but Picture-Fax cannot view them. Paint can open them, but the colors are messed up. However, I write the data as stated valid for a 24 bit color bitmap, and MS's own LoadImage API correctly loads the bitmaps I write out. How do I know that? I am using LoadImage and I can reload those bitmaps that I save out.)
The 'color distortion' associated from 'shrinking' bitmaps with StretchDIBits or StretchBlt in certain situations is non-existent in this application. I wrote my own custom 'Scale' function for my Image class.
This application is tiny at only 14KB. (14336 bytes) :)