C# Class Glass.Imaging.FullFx.Extensions

显示文件 Open project: SuperJMN/Glass

Public Methods

Method Description
ConverToRawPixels ( this rect, double horzDpi, double vertDpi ) : Rect
Crop ( this bitmap, Rect rect ) : System.Windows.Media.Imaging.BitmapSource
LoadFromPath ( string path ) : BitmapImage
Rotate ( this bitmap, double angle ) : System.Windows.Media.Imaging.BitmapSource
ToInt32Rect ( this rect ) : System.Windows.Int32Rect
Transform ( this bitmap, Core.Transform transform ) : System.Windows.Media.Imaging.BitmapSource
TryLoadFromPath ( string path ) : BitmapImage

Private Methods

Method Description
OnMemoryBitmap ( Uri source ) : BitmapImage

Method Details

ConverToRawPixels() public static method

public static ConverToRawPixels ( this rect, double horzDpi, double vertDpi ) : Rect
rect this
horzDpi double
vertDpi double
return System.Windows.Rect

Crop() public static method

public static Crop ( this bitmap, Rect rect ) : System.Windows.Media.Imaging.BitmapSource
bitmap this
rect System.Windows.Rect
return System.Windows.Media.Imaging.BitmapSource

LoadFromPath() public static method

public static LoadFromPath ( string path ) : BitmapImage
path string
return System.Windows.Media.Imaging.BitmapImage

Rotate() public static method

public static Rotate ( this bitmap, double angle ) : System.Windows.Media.Imaging.BitmapSource
bitmap this
angle double
return System.Windows.Media.Imaging.BitmapSource

ToInt32Rect() public static method

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

Transform() public static method

public static Transform ( this bitmap, Core.Transform transform ) : System.Windows.Media.Imaging.BitmapSource
bitmap this
transform Core.Transform
return System.Windows.Media.Imaging.BitmapSource

TryLoadFromPath() public static method

public static TryLoadFromPath ( string path ) : BitmapImage
path string
return System.Windows.Media.Imaging.BitmapImage