C# Класс Artemis.Utilities.ImageUtilities

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

BitmapToBitmapImage() публичный статический Метод

public static BitmapToBitmapImage ( Bitmap b ) : BitmapImage
b System.Drawing.Bitmap
Результат System.Windows.Media.Imaging.BitmapImage

DrawingVisualToBitmap() публичный статический Метод

public static DrawingVisualToBitmap ( System.Windows.Media.DrawingVisual visual, Rect rect ) : Bitmap
visual System.Windows.Media.DrawingVisual
rect Rect
Результат System.Drawing.Bitmap

GenerateWindowIcon() публичный статический Метод

Loads the BowIcon from resources and colors it according to the current theme
public static GenerateWindowIcon ( ) : System.Windows.Media.Imaging.RenderTargetBitmap
Результат System.Windows.Media.Imaging.RenderTargetBitmap

ResizeImage() публичный статический Метод

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.
Результат System.Drawing.Bitmap