C# 클래스 Artemis.Utilities.ImageUtilities

파일 보기 프로젝트 열기: SpoinkyNL/Artemis

공개 메소드들

메소드 설명
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