PDA

View Full Version : How to change the height and width of a png image dynamically using vc++?



Sandhya_BK
5th March 2013, 05:19
Hi,

I m trying to load a png image by giving the dimension of my own.

CImage Image;
Image.Load (L"D:\\Images\\PNG_Images\\Image7.png");

But here what happens is that I m not able to give my own dimensions.My code requires constant changing of dimensions of the image.
I tried using libpng.lib in my code.But I dono the keywords for loading the png image after including the lib.

I m using Visual Studio 2010. I m developing in vc++.

How do I load and change the height and width of a png image?

Thankx a ton in advance....

Regards,
Sandhya.

ChrisW67
5th March 2013, 08:04
Ask Microsoft, or whoever produced the CImage class. This has nothing to do with Qt.