Loading *.bmp files

Started by
2 comments, last by Halloween 22 years, 7 months ago
Please, someone help me to figure out how to load a *.bmp file, then stretch it, convert to the 256 colors and save back to the another file, using only Win32 functions.
Advertisement
I cant help you with the converting it to 256 colours but you can use LoadImage() to load in the bitmap (casting it to a HBITMAP i think) and then you can use StretchDIBBits() to stretch it to whatever you want. Have a look at those functions in the msdn.
Just my thoughts take them as you will. "People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face
Thanks a lot, Zeke. It really helped!
you can use windows gdi to load the bitmap, the gdi can convert the bitmap for you, but its kinda of slow though, you can only do it during initialization

This topic is closed to new replies.

Advertisement