Click here to Skip to main content
15,887,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi all,
I am using ImageMagickObject to scale a 1000x1000 pixel image into 200x400 pixel image. But it does not work! The result image 's size is 200x200 pixel.

How to repair this? Please help me.
Thanks,

C#
using ImageMagickObject;

// ....

ImageMagickObject.MagickImage imgLarge = new ImageMagickObject.MagickImage();
object[] o = new object[] { "a.jpg", 
                            "-resize",
                            width.ToString() + "x" + height.ToString(),
                            "a.jpg.scaled" };
imgLarge.Convert(o);
Posted

1 solution

i am not used ImageMagicObject :) , But it is possible with classes Graphics,Bitmap, and DrawImage function. You can also set the desired interpolation mode. So what is the advantage of using ImageMagickObject ?
 
Share this answer
 
Comments
Duc Huy Nguyen 16-Jan-12 9:36am    
I know your solution, but my project manager asked me to do with both your way and his way.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900