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 SourceCopyFrom(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 |
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
| Improve this Doc View SourceToBitmapSource(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 |
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 |
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 |
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 |