Click here to Skip to main content
15,899,313 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralMFC Bitmap Help [modified] Pin
dipen.rana20-Jun-07 11:33
dipen.rana20-Jun-07 11:33 
GeneralRe: MFC Bitmap Help Pin
Christian Graus20-Jun-07 11:46
protectorChristian Graus20-Jun-07 11:46 
GeneralRe: MFC Bitmap Help Pin
Mark Salsbery20-Jun-07 12:04
Mark Salsbery20-Jun-07 12:04 
GeneralRe: MFC Bitmap Help Pin
Hamid_RT20-Jun-07 18:42
Hamid_RT20-Jun-07 18:42 
GeneralRe: MFC Bitmap Help Pin
Mark Salsbery21-Jun-07 5:19
Mark Salsbery21-Jun-07 5:19 
GeneralRe: MFC Bitmap Help Pin
Hamid_RT21-Jun-07 19:43
Hamid_RT21-Jun-07 19:43 
GeneralRe: MFC Bitmap Help Pin
dipen.rana25-Jun-07 5:43
dipen.rana25-Jun-07 5:43 
GeneralRe: MFC Bitmap Help Pin
Mark Salsbery25-Jun-07 7:40
Mark Salsbery25-Jun-07 7:40 
If you're using C then you'll need to write the code to save the file yourself, or use a 3rd-
party library.

What format do you want to save the file to?

If BMP is ok, then the format of a BMP file is:

BITMAPFILEHEADER
BITMAPINFO (or BITMAPCOREINFO)
ColorTable
Pixel bits

For an example of writing a BMP file, see Saving a Drawing to a Bitmap File[^]

For other file formats you can look up the format and you'd need to implement any appropriate
compression. It's not a trivial project Smile | :)

Mark


"Go that way, really fast. If something gets in your way, turn."

GeneralRe: MFC Bitmap Help Pin
dipen.rana25-Jun-07 8:45
dipen.rana25-Jun-07 8:45 
GeneralRe: MFC Bitmap Help Pin
Mark Salsbery25-Jun-07 13:49
Mark Salsbery25-Jun-07 13:49 
GeneralRe: MFC Bitmap Help Pin
dipen.rana2-Jul-07 10:00
dipen.rana2-Jul-07 10:00 
QuestionOptimizing floating-point calculation performance with 64-bit applications? Pin
Cyrilix20-Jun-07 11:16
Cyrilix20-Jun-07 11:16 
QuestionCInternetSession question Pin
baloneyman20-Jun-07 9:51
baloneyman20-Jun-07 9:51 
QuestionAnyone know which file defines GET_X_LPARAM and GET_Y_LPARAM macros for WM_MOUSEMOVE? Pin
Cyrilix20-Jun-07 9:12
Cyrilix20-Jun-07 9:12 
AnswerRe: Anyone know which file defines GET_X_LPARAM and GET_Y_LPARAM macros for WM_MOUSEMOVE? Pin
Mark Salsbery20-Jun-07 9:30
Mark Salsbery20-Jun-07 9:30 
GeneralRe: Anyone know which file defines GET_X_LPARAM and GET_Y_LPARAM macros for WM_MOUSEMOVE? Pin
Cyrilix20-Jun-07 9:32
Cyrilix20-Jun-07 9:32 
GeneralRe: Anyone know which file defines GET_X_LPARAM and GET_Y_LPARAM macros for WM_MOUSEMOVE? Pin
Mark Salsbery20-Jun-07 9:38
Mark Salsbery20-Jun-07 9:38 
QuestionIt has been 10 years! Pin
mrw_houston20-Jun-07 8:59
mrw_houston20-Jun-07 8:59 
AnswerRe: It has been 10 years! Pin
Cyrilix20-Jun-07 9:21
Cyrilix20-Jun-07 9:21 
AnswerRe: It has been 10 years! [modified] Pin
Mark Salsbery20-Jun-07 9:34
Mark Salsbery20-Jun-07 9:34 
GeneralRe: It has been 10 years! Pin
Stephen Hewitt20-Jun-07 13:55
Stephen Hewitt20-Jun-07 13:55 
GeneralRe: It has been 10 years! Pin
Mark Salsbery20-Jun-07 14:02
Mark Salsbery20-Jun-07 14:02 
QuestionRelease OK,Debug Error! Pin
kingliub20-Jun-07 6:21
kingliub20-Jun-07 6:21 
AnswerRe: Release OK,Debug Error! Pin
shivditya20-Jun-07 6:23
shivditya20-Jun-07 6:23 
GeneralRe: Release OK,Debug Error! Pin
kingliub20-Jun-07 6:29
kingliub20-Jun-07 6:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.