C# Class ImageMagick.MagickImage

Inheritance: IDisposable
Mostra file Open project: dlemstra/Magick.NET Class Usage Examples

Public Methods

Method Description
MagickImage ( Bitmap bitmap ) : System

Initializes a new instance of the MagickImage class.

Read ( Bitmap bitmap ) : void

Read single image frame.

ToBitmap ( ) : Bitmap

Converts this instance to a Bitmap using ImageFormat.Bmp.

ToBitmap ( ImageFormat imageFormat ) : Bitmap

Converts this instance to a Bitmap using the specified ImageFormat. Supported formats are: Bmp, Gif, Icon, Jpeg, Png, Tiff.

ToBitmapSource ( ) : BitmapSource

Converts this instance to a BitmapSource.

Private Methods

Method Description
GetInstance ( MagickImage instance ) : IntPtr
IsSupportedImageFormat ( ImageFormat format ) : bool

Method Details

MagickImage() public method

Initializes a new instance of the MagickImage class.
Thrown when an error is raised by ImageMagick.
public MagickImage ( Bitmap bitmap ) : System
bitmap Bitmap The bitmap to use.
return System

Read() public method

Read single image frame.
Thrown when an error is raised by ImageMagick.
public Read ( Bitmap bitmap ) : void
bitmap Bitmap The bitmap to read the image from.
return void

ToBitmap() public method

Converts this instance to a Bitmap using ImageFormat.Bmp.
public ToBitmap ( ) : Bitmap
return Bitmap

ToBitmap() public method

Converts this instance to a Bitmap using the specified ImageFormat. Supported formats are: Bmp, Gif, Icon, Jpeg, Png, Tiff.
public ToBitmap ( ImageFormat imageFormat ) : Bitmap
imageFormat ImageFormat The image format.
return Bitmap

ToBitmapSource() public method

Converts this instance to a BitmapSource.
public ToBitmapSource ( ) : BitmapSource
return BitmapSource