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

C / C++ / MFC

 
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 
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 
create a CBitmap object member of your window class. every time your zoom level changes:

1. delete the contents of that CBitmap
2. create a new (compatible) bitmap of the appropriate size
3. do your StretchBlt onto that

the code to do that is basically the same as what you have above, but you drawing into m_zoomedBitmap (or whatever) instead of tempBMP, and you use StretchBlt there.

then, when it's time to do the OnPaint/OnDraw, draw that member CBitmap with a normal BitBlt.


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 
AnswerRe: two dialogs placing problem? Pin
Mark Salsbery30-Oct-07 7:24
Mark Salsbery30-Oct-07 7:24 
GeneralRe: two dialogs placing problem? Pin
led mike30-Oct-07 10:12
led mike30-Oct-07 10:12 

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.