Click here to Skip to main content
15,909,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Chris Losinger31-Oct-07 7:28
professionalChris Losinger31-Oct-07 7:28 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Kiran Satish1-Nov-07 11:18
Kiran Satish1-Nov-07 11:18 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Chris Losinger1-Nov-07 12:09
professionalChris Losinger1-Nov-07 12:09 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Kiran Satish1-Nov-07 12:57
Kiran Satish1-Nov-07 12:57 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Kiran Satish1-Nov-07 13:45
Kiran Satish1-Nov-07 13:45 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Chris Losinger1-Nov-07 14:04
professionalChris Losinger1-Nov-07 14:04 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Kiran Satish2-Nov-07 8:03
Kiran Satish2-Nov-07 8:03 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Chris Losinger2-Nov-07 8:15
professionalChris Losinger2-Nov-07 8:15 
the Bitmap needs to be compatible with the DC you're BitBlt'ing to. when you use the memory DC for the C*C*Bitmap call, the bitmap created will be monochrome. if you use an output DC, it will match the settings of that DC.

or, as Microsoft puts it:

    Because memory device contexts allow both color and monochrome bitmaps, the format of the bitmap returned by the CreateCompatibleBitmap function differs when the specified device context is a memory device context. However, a compatible bitmap that was created for a nonmemory device context always possesses the same color format and uses the same color palette as the specified device context.

    Note: When a memory device context is created, it initially has a 1-by-1 monochrome bitmap selected into it. If this memory device context is used in CreateCompatibleBitmap, the bitmap that is created is a monochrome bitmap. To create a color bitmap, use the hDC that was used to create the memory device context, as shown in the following code...



GeneralRe: Need an alternative for StretchBlt()?? Pin
Kiran Satish6-Nov-07 13:13
Kiran Satish6-Nov-07 13:13 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Chris Losinger6-Nov-07 14:49
professionalChris Losinger6-Nov-07 14:49 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Kiran Satish7-Nov-07 6:50
Kiran Satish7-Nov-07 6:50 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Kiran Satish8-Nov-07 7:17
Kiran Satish8-Nov-07 7:17 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Chris Losinger10-Nov-07 7:13
professionalChris Losinger10-Nov-07 7:13 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Kiran Satish14-Nov-08 13:21
Kiran Satish14-Nov-08 13:21 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Chris Losinger14-Nov-08 17:59
professionalChris Losinger14-Nov-08 17:59 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Kiran Satish17-Nov-08 6:50
Kiran Satish17-Nov-08 6:50 
GeneralRe: Need an alternative for StretchBlt()?? Pin
Chris Losinger17-Nov-08 7:08
professionalChris Losinger17-Nov-08 7:08 
Questiontwo dialogs placing problem? Pin
Gofur Halmurat30-Oct-07 6:57
Gofur Halmurat30-Oct-07 6:57 
AnswerRe: two dialogs placing problem? Pin
led mike30-Oct-07 7:06
led mike30-Oct-07 7:06 
QuestionRe: two dialogs placing problem? Pin
CPallini30-Oct-07 7:14
mveCPallini30-Oct-07 7:14 
AnswerRe: two dialogs placing problem? Pin
Maximilien30-Oct-07 7:14
Maximilien30-Oct-07 7:14 
GeneralRe: two dialogs placing problem? Pin
Gofur Halmurat30-Oct-07 7:16
Gofur Halmurat30-Oct-07 7:16 
GeneralRe: two dialogs placing problem? Pin
Maximilien30-Oct-07 7:22
Maximilien30-Oct-07 7:22 
GeneralRe: two dialogs placing problem? Pin
Gofur Halmurat30-Oct-07 7:21
Gofur Halmurat30-Oct-07 7:21 
GeneralRe: two dialogs placing problem? Pin
CPallini30-Oct-07 7:26
mveCPallini30-Oct-07 7:26 

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.