Click here to Skip to main content
16,016,801 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: enum Pin
Maximilien16-May-07 3:38
Maximilien16-May-07 3:38 
Questionhow to build a 3-dimension image processing ? Pin
gentleguy16-May-07 3:02
gentleguy16-May-07 3:02 
AnswerRe: how to build a 3-dimension image processing ? Pin
Cedric Moonen16-May-07 3:29
Cedric Moonen16-May-07 3:29 
AnswerRe: how to build a 3-dimension image processing ? Pin
Hamid_RT16-May-07 5:40
Hamid_RT16-May-07 5:40 
QuestionSave an image (of 24 bits depth or less) Pin
llp00na16-May-07 3:00
llp00na16-May-07 3:00 
AnswerRe: Save an image (of 24 bits depth or less) Pin
Mark Salsbery16-May-07 5:27
Mark Salsbery16-May-07 5:27 
GeneralRe: Save an image (of 24 bits depth or less) Pin
llp00na16-May-07 6:21
llp00na16-May-07 6:21 
GeneralRe: Save an image (of 24 bits depth or less) Pin
Mark Salsbery16-May-07 6:31
Mark Salsbery16-May-07 6:31 
Here's another link: Converting DDB to DIB[^]

In that code, the BITMAPINFOHEADER biPlanes, biBitCount, and biCompression members are initialized
to match the source DDB.

To change the type, set those members to the actual format you want before making the first
call to GetDIBits.

Remember, for 1, 4, and 8 bit formats you'll need to deal with a color table in the DIB.
For 24-bit, there's no color table. See the documentation for BITMAPINFOHEADER for details.

Mark


"Posting a VB.NET question in the C++ forum will end in tears." Chris Maunder

GeneralRe: Save an image (of 24 bits depth or less) Pin
llp00na16-May-07 6:42
llp00na16-May-07 6:42 
GeneralRe: Save an image (of 24 bits depth or less) Pin
Nelek17-May-07 20:04
protectorNelek17-May-07 20:04 
Questionwininet.h and winsock.h Pin
amitmistry_petlad 16-May-07 2:59
amitmistry_petlad 16-May-07 2:59 
AnswerRe: wininet.h and winsock.h Pin
Mark Salsbery16-May-07 5:32
Mark Salsbery16-May-07 5:32 
GeneralRe: wininet.h and winsock.h Pin
amitmistry_petlad 16-May-07 17:34
amitmistry_petlad 16-May-07 17:34 
GeneralRe: wininet.h and winsock.h Pin
Mark Salsbery17-May-07 5:21
Mark Salsbery17-May-07 5:21 
GeneralRe: wininet.h and winsock.h Pin
amitmistry_petlad 17-May-07 18:01
amitmistry_petlad 17-May-07 18:01 
QuestionWIN32_FIND_DATA pTempFind; and .cFileName Pin
Immunity1816-May-07 2:51
Immunity1816-May-07 2:51 
AnswerRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
Immunity1816-May-07 3:01
Immunity1816-May-07 3:01 
QuestionRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
David Crow16-May-07 3:04
David Crow16-May-07 3:04 
AnswerRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
Immunity1816-May-07 3:15
Immunity1816-May-07 3:15 
QuestionRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
David Crow16-May-07 3:16
David Crow16-May-07 3:16 
AnswerRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
Immunity1816-May-07 3:20
Immunity1816-May-07 3:20 
QuestionRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
David Crow16-May-07 3:44
David Crow16-May-07 3:44 
AnswerRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
Immunity1816-May-07 3:56
Immunity1816-May-07 3:56 
QuestionRe: WIN32_FIND_DATA pTempFind; and .cFileName Pin
David Crow16-May-07 4:13
David Crow16-May-07 4:13 
Questionpointers and structures Pin
klutez12316-May-07 2:43
klutez12316-May-07 2:43 

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.