resize image bitmap ????(VC++)
-
You may create a compatible bitmap with the desidered size and then bit-blit the original one into it. If you need to resample the image (i.e. to resize without too quality loss) then have a look at my
DLL
[^] (you may also useGDI+
). :)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] -
You can use
StretchBlt
if you dont need to save it.Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
If the image is available in a file, you can resize it when you load it using
LoadImage
by giving the required dimension in thecxDesired
andcyDesired
parameters.«_Superman_» I love work. It gives me something to do between weekends.
-
Sure see Scaling an Image (Windows)[^] (dont forget vote to me :-D ).
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )