C# Class Artemis.Utilities.ImageUtilities

Datei anzeigen Open project: SpoinkyNL/Artemis

Public Methods

Method Description
BitmapToBitmapImage ( Bitmap b ) : BitmapImage
DrawingVisualToBitmap ( System.Windows.Media.DrawingVisual visual, Rect rect ) : Bitmap
GenerateWindowIcon ( ) : System.Windows.Media.Imaging.RenderTargetBitmap

Loads the BowIcon from resources and colors it according to the current theme

ResizeImage ( Image image, int width, int height ) : Bitmap

Resize the image to the specified width and height.

Method Details

BitmapToBitmapImage() public static method

public static BitmapToBitmapImage ( Bitmap b ) : BitmapImage
b System.Drawing.Bitmap
return System.Windows.Media.Imaging.BitmapImage

DrawingVisualToBitmap() public static method

public static DrawingVisualToBitmap ( System.Windows.Media.DrawingVisual visual, Rect rect ) : Bitmap
visual System.Windows.Media.DrawingVisual
rect Rect
return System.Drawing.Bitmap

GenerateWindowIcon() public static method

Loads the BowIcon from resources and colors it according to the current theme
public static GenerateWindowIcon ( ) : System.Windows.Media.Imaging.RenderTargetBitmap
return System.Windows.Media.Imaging.RenderTargetBitmap

ResizeImage() public static method

Resize the image to the specified width and height.
public static ResizeImage ( Image image, int width, int height ) : Bitmap
image System.Drawing.Image The image to resize.
width int The width to resize to.
height int The height to resize to.
return System.Drawing.Bitmap