Hi,

Is there any way so that I call mspaint through my C program and edit the resolution or resize my photos?

Sundeep

Personally, I think I would use GIMP (which is free), and has it's own scripting language for performing all sorts of transformations on images.

Even if you want to stick with mspaint, I think using a windows scripting language would be preferable to using a C program to drive mspaint.

Hi,

Is there any way so that I call mspaint through my C program and edit the resolution or resize my photos?

Sundeep

Call mspaint:

WinExec("mspaint.exe", SW_SHOW);

MsPaint uses standart Windows GDI function for working with images. Look through MSDN.

Have a look through google for free image manipulation libraries. There are a few very good ones available. This should be a much better solution than just running MSPaint to resize an image!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.