C# Class Glass.Imaging.Core.Extensions

显示文件 Open project: SuperJMN/Glass

Public Methods

Method Description
ConvertFrom96pppToBitmapDpi ( this rect, double horzDpi, double vertDpi ) : Rect
ToBitmap ( this bitmapImage ) : Bitmap
ToBitmapImage ( this bitmap ) : System.Windows.Media.Imaging.BitmapSource
ToInt32Rect ( this rect ) : System.Windows.Int32Rect

Method Details

ConvertFrom96pppToBitmapDpi() public static method

public static ConvertFrom96pppToBitmapDpi ( this rect, double horzDpi, double vertDpi ) : Rect
rect this
horzDpi double
vertDpi double
return Rect

ToBitmap() public static method

public static ToBitmap ( this bitmapImage ) : Bitmap
bitmapImage this
return System.Drawing.Bitmap

ToBitmapImage() public static method

public static ToBitmapImage ( this bitmap ) : System.Windows.Media.Imaging.BitmapSource
bitmap this
return System.Windows.Media.Imaging.BitmapSource

ToInt32Rect() public static method

public static ToInt32Rect ( this rect ) : System.Windows.Int32Rect
rect this
return System.Windows.Int32Rect