For Programmers: Free Programming Magazines  


Home > Archive > Smartphone Developer Forum > April 2006 > Resize bitmap from resource









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Resize bitmap from resource
marekc

2006-04-20, 8:06 am

I have bitmap - resource, and I have now:


CBitmap pic;
CDC memDCCover;
pic.LoadBitmapW(IDB_PIC);
m_pBackround.SetBitmap(pic);

I'm trying to resize my bitmap like this...

m_pBackround.MoveWindow(x1,y1,x2,y2);

.... but Bitmap is not resizing...

What can I do?

Sai

2006-04-20, 7:07 pm

Window resizing doesnt affect the contents..generally you would have to
re-layout the controls and repaint. You can use StretchBlt or
equivalent to resize and paint the bitmap.

-Sai

marekc

2006-04-20, 7:07 pm

Nice :) It works!

Thank you,
Best regards!

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com