You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 lines
475 B

System.Drawing.Bitmap copy = cloneBitmap.Clone(new System.Drawing.Rectangle(0, 0, cloneBitmap.Width, cloneBitmap.Height), cloneBitmap.PixelFormat);
System.Drawing.Bitmap newbit = GummingCommon.ImageService.LinearChange(copy, 1.0, e.NewValue);
MemoryStream ms = new MemoryStream();
newbit.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
var dimgSource = BitmapService.LoadBitmapStream(ms);
var dimgBitmap = new WriteableBitmap(dimgSource);
imgContent.Source = dimgBitmap;