Show / Hide Table of Contents

Class BitmapSourceConverter

Static class which provides conversion between System.Windows.Media.Imaging.BitmapSource and IplImage

Inheritance
System.Object
BitmapSourceConverter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OpenCvSharp.WpfExtensions
Assembly: OpenCvSharp.WpfExtensions.dll
Syntax
public static class BitmapSourceConverter

Methods

| Improve this Doc View Source

CopyFrom(Mat, BitmapSource)

Copies pixel data from System.Windows.Media.Imaging.BitmapSource to IplImage instance

Declaration
public static void CopyFrom(this Mat mat, BitmapSource wb)
Parameters
Type Name Description
Mat mat
System.Windows.Media.Imaging.BitmapSource wb
| Improve this Doc View Source

ToBitmapSource(Bitmap)

Converts System.Drawing.Bitmap to BitmapSource.

Declaration
public static BitmapSource ToBitmapSource(this Bitmap src)
Parameters
Type Name Description
Bitmap src

Input System.Drawing.Bitmap

Returns
Type Description
System.Windows.Media.Imaging.BitmapSource

BitmapSource

Remarks

http://www.codeproject.com/Articles/104929/Bitmap-to-BitmapSource

| Improve this Doc View Source

ToBitmapSource(Mat)

Converts Mat to BitmapSource.

Declaration
public static BitmapSource ToBitmapSource(this Mat src)
Parameters
Type Name Description
Mat src

Input IplImage

Returns
Type Description
System.Windows.Media.Imaging.BitmapSource

BitmapSource

| Improve this Doc View Source

ToBitmapSource(Mat, Int32, Int32, PixelFormat, BitmapPalette)

Converts Mat to BitmapSource.

Declaration
public static BitmapSource ToBitmapSource(this Mat src, int horizontalResolution, int verticalResolution, PixelFormat pixelFormat, BitmapPalette palette)
Parameters
Type Name Description
Mat src

Input IplImage

System.Int32 horizontalResolution
System.Int32 verticalResolution
System.Windows.Media.PixelFormat pixelFormat
System.Windows.Media.Imaging.BitmapPalette palette
Returns
Type Description
System.Windows.Media.Imaging.BitmapSource

BitmapSource

| Improve this Doc View Source

ToMat(BitmapSource)

Converts BitmapSource to Mat

Declaration
public static Mat ToMat(this BitmapSource src)
Parameters
Type Name Description
System.Windows.Media.Imaging.BitmapSource src

Input BitmapSource

Returns
Type Description
Mat

IplImage

| Improve this Doc View Source

ToMat(BitmapSource, Mat)

Converts BitmapSource to Mat

Declaration
public static void ToMat(this BitmapSource src, Mat dst)
Parameters
Type Name Description
System.Windows.Media.Imaging.BitmapSource src

Input BitmapSource

Mat dst

Output Mat

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX