C# Class SEToolbox.ImageLibrary.ImageHelper

ファイルを表示 Open project: midspace/SEToolbox

Public Methods

Method Description
ConvertBitmapToBitmapImage ( Bitmap bitmap ) : BitmapImage
ResizeImage ( Image image, Size size ) : Bitmap

Resize the image to the specified width and height.

SavePng ( string path, Image image ) : void

Method Details

ConvertBitmapToBitmapImage() public static method

public static ConvertBitmapToBitmapImage ( Bitmap bitmap ) : BitmapImage
bitmap System.Drawing.Bitmap
return System.Windows.Media.Imaging.BitmapImage

ResizeImage() public static method

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

SavePng() public static method

public static SavePng ( string path, Image image ) : void
path string
image System.Drawing.Image
return void