Generate Bitmap
-
Hi, this maybe a stupid question. But I'm new to C++ I would like to create a bitmap, and put data from by myself i.e. I have to process a set of pixel data from data buffer, after the calculation, I would like to save the data into a Bitmap. maybe line by line, maybe append from a loop. Can anyone provide me an example for saving and creating bitmap? many Thanks..
-
Hi, this maybe a stupid question. But I'm new to C++ I would like to create a bitmap, and put data from by myself i.e. I have to process a set of pixel data from data buffer, after the calculation, I would like to save the data into a Bitmap. maybe line by line, maybe append from a loop. Can anyone provide me an example for saving and creating bitmap? many Thanks..
You may find
CImage
http://msdn2.microsoft.com/en-us/library/bwea7by5(VS.80).aspx[^] useful to accomplish the task. Alterantively, have a llok atGDI+ Image
class http://msdn2.microsoft.com/en-us/library/ms534462(VS.85).aspx[^]. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
[my articles] -
You may find
CImage
http://msdn2.microsoft.com/en-us/library/bwea7by5(VS.80).aspx[^] useful to accomplish the task. Alterantively, have a llok atGDI+ Image
class http://msdn2.microsoft.com/en-us/library/ms534462(VS.85).aspx[^]. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
[my articles]Would you mind provide me a sample code for creating a bitmap. I've read some doc, it needs to create Bitmap header as well... actually, the raw data (image from char* ) must eventually save into Png file, so I want to save it to Bitmap first, and then convert to png.
modified on Monday, February 04, 2008 9:01:59 PM