ME3Explorer.GenericWindow.GetImage C# (CSharp) Method

GetImage() public method

public GetImage ( ) : System.Windows.Media.Imaging.BitmapSource
return System.Windows.Media.Imaging.BitmapSource
        public BitmapSource GetImage()
        {
            if (wpf != null)
            {
                return wpf.DrawToBitmapSource();
            }
            else if (winform != null)
            {
                return winform.DrawToBitmapSource();
            }
            return null;
        }
    }

Usage Example

コード例 #1
0
 public void setTool(GenericWindow gen)
 {
     this.DataContext = current = gen;
     current.Disposing += Current_Disposing;
     BitmapSource bitmap = gen.GetImage();
     double scale = screenShot.Width / (bitmap.Width > bitmap.Height ? bitmap.Width : bitmap.Height);
     screenShot.Source = new TransformedBitmap(bitmap, new ScaleTransform(scale, scale));
 }
All Usage Examples Of ME3Explorer.GenericWindow::GetImage