problem regarding magicnet.dll
Posted: 2009-03-12T11:00:22-07:00
Hi,
I am using magicNet.dll in my project. In my project I need to crop one image more than one times. I write the code, but first time its gives correct result, but after that when I am trying to crop that 1st cropped image its gives wrong result. I am just stuck into that. My coding is like below,
magicnet.magic.image img; ...................... in the top.
form_load-
img=new magicnet.magic.image(filename);
void crop()
{
MagickNet.Magick.Init();
img = new MagickNet.Image(img);
//img1 = img;
img.Crop(rec);
picViewer.Image=MagickNet.Image.ToBitmap(img);
MagickNet.Magick.Term();
}
here rectangle value i am getting from mouse move. Please help me.
I am using magicNet.dll in my project. In my project I need to crop one image more than one times. I write the code, but first time its gives correct result, but after that when I am trying to crop that 1st cropped image its gives wrong result. I am just stuck into that. My coding is like below,
magicnet.magic.image img; ...................... in the top.
form_load-
img=new magicnet.magic.image(filename);
void crop()
{
MagickNet.Magick.Init();
img = new MagickNet.Image(img);
//img1 = img;
img.Crop(rec);
picViewer.Image=MagickNet.Image.ToBitmap(img);
MagickNet.Magick.Term();
}
here rectangle value i am getting from mouse move. Please help me.