C# Class Artemis.Utilities.ImageUtilities

Afficher le fichier Open project: SpoinkyNL/Artemis

Méthodes publiques

Méthode 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 méthode

public static BitmapToBitmapImage ( Bitmap b ) : BitmapImage
b System.Drawing.Bitmap
Résultat System.Windows.Media.Imaging.BitmapImage

DrawingVisualToBitmap() public static méthode

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

GenerateWindowIcon() public static méthode

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

ResizeImage() public static méthode

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.
Résultat System.Drawing.Bitmap