How to stretch a bitmap to fit the size of picture control?
-
Hello everybody, im creating a picture control in a dialog box (win 32), i need to show an image in that control, but my bitmap is of 30 X 30 size, but the control is 100 X 100, i would like to stretch the image upto 80 X 80, so that picture control is filled with the same image. Thanks in advance, A. Gopinath.
-
Hello everybody, im creating a picture control in a dialog box (win 32), i need to show an image in that control, but my bitmap is of 30 X 30 size, but the control is 100 X 100, i would like to stretch the image upto 80 X 80, so that picture control is filled with the same image. Thanks in advance, A. Gopinath.
You may use my DLL [^], if you need to stretch it without loosing too much quality. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hello everybody, im creating a picture control in a dialog box (win 32), i need to show an image in that control, but my bitmap is of 30 X 30 size, but the control is 100 X 100, i would like to stretch the image upto 80 X 80, so that picture control is filled with the same image. Thanks in advance, A. Gopinath.
I usually specify the required size in the
LoadImage
API in its cxDesired and cyDesired parameters.«_Superman_» I love work. It gives me something to do between weekends.
-
You may use my DLL [^], if you need to stretch it without loosing too much quality. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Hello everybody, im creating a picture control in a dialog box (win 32), i need to show an image in that control, but my bitmap is of 30 X 30 size, but the control is 100 X 100, i would like to stretch the image upto 80 X 80, so that picture control is filled with the same image. Thanks in advance, A. Gopinath.