Example #1
0
        public BitmapWpf ToBitmapWpf()
        {
            var result = new BitmapWpf(Width, Height);

            result.CopyPixelsFrom(this);
            return(result);
        }
Example #2
0
        public static BitmapWpf ToBitmapWpf(this BitmapSource src)
        {
            var result = new BitmapWpf(src.PixelWidth, src.PixelHeight);

            result.CopyPixelsFrom(src);
            return(result);
        }
Example #3
0
 public BitmapWpf ToBitmapWpf()
 {
     var result = new BitmapWpf(Width, Height);
     result.CopyPixelsFrom(this);
     return result;
 }
Example #4
0
 public static BitmapWpf ToBitmapWpf(this BitmapSource src)
 {
     var result = new BitmapWpf(src.PixelWidth, src.PixelHeight);
     result.CopyPixelsFrom(src);
     return result;
 }