示例#1
0
 //Apply the change over the image preview       
 private SoftwareBitmap ApplyImageEffect8bitsNoHistoAsync(ImageComponent<ushort> image, ImageEffect edition)
 {
     SoftwareBitmap bitmap = CreateBitmap(BitmapPixelFormat.Bgra8, edition.Rotation, image.dim);
     edition.ApplyTo8Bits(image, bitmap, false);
     return bitmap;
 }
示例#2
0
 //Apply the change over the image preview       
 private Tuple<HistoRaw, SoftwareBitmap> ApplyImageEffect8bits(ImageComponent<ushort> image, ImageEffect edition)
 {
     SoftwareBitmap bitmap = CreateBitmap(BitmapPixelFormat.Bgra8, edition.Rotation, image.dim);
     var tmp = edition.ApplyTo8Bits(image, bitmap, true);
     return Tuple.Create(tmp, bitmap);
 }