Show / Hide Table of Contents

Class System_Drawing_ImageExtensions

Contains extensions for the Img class.

Inheritance
object
System_Drawing_ImageExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Helpers
Assembly: MCART.Wpf.Common.dll
Syntax
public static class System_Drawing_ImageExtensions

Methods

| Edit this page View Source

ToImage(Image)

Converts a System.Drawing.Image into a BitmapImage.

Declaration
public static BitmapImage ToImage(this Image image)
Parameters
Type Name Description
Image image

The System.Drawing.Image to convert.

Returns
Type Description
BitmapImage

A BitmapImage containing the image obtained from the System.Drawing.Image.

| Edit this page View Source

ToSource(Image)

Converts a System.Drawing.Image into a BitmapSource.

Declaration
public static BitmapSource ToSource(this Image image)
Parameters
Type Name Description
Image image

The System.Drawing.Image to convert.

Returns
Type Description
BitmapSource

A BitmapSource containing the image obtained from the System.Drawing.Image.

| Edit this page View Source

ToVisual(Image)

Converts a System.Drawing.Image into a Visual.

Declaration
public static Visual ToVisual(this Image image)
Parameters
Type Name Description
Image image

The System.Drawing.Image to convert.

Returns
Type Description
Visual

A Visual that contains the image obtained from the System.Drawing.Image.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX