Image Cropping Problem.

May 11, 2011 at 4:59 PM
Edited May 11, 2011 at 5:01 PM

Hello Guys,

I am working on silverlight application and I am trying to Crop the image, but I am getting wrong cropping part means it will give me some top left part only and else it will give some two part of image in atually my image my code is like this.

foreach (ucPicRect item in sheetRectangle.Children) 

 {

 WriteableBitmap objwbm = new WriteableBitmap(dlgcwEditPhoto.imgEdit.Source as BitmapSource

);

 

item.imgCell.Source = ImageCropping

.Crop(objwbm, 100, 1000, 0, 100000*6000);

 

}

 

 

 

if I am wrong then correct me.

 

Thanks..!!