Exemplo n.º 1
0
        public BitmapWpf ToBitmapWpf()
        {
            var result = new BitmapWpf(Width, Height);

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

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