Class BitmapConverter
static class which provides conversion between System.Drawing.Bitmap and Mat
Inheritance
System.Object
BitmapConverter
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.Extensions
Assembly: OpenCvSharp.Extensions.dll
Syntax
public static class BitmapConverter
Methods
| Improve this Doc View SourceToBitmap(Mat)
Converts Mat to System.Drawing.Bitmap
Declaration
public static Bitmap ToBitmap(this Mat src)
Parameters
Type | Name | Description |
---|---|---|
Mat | src | Mat |
Returns
Type | Description |
---|---|
Bitmap |
ToBitmap(Mat, Bitmap)
Converts Mat to System.Drawing.Bitmap
Declaration
public static void ToBitmap(this Mat src, Bitmap dst)
Parameters
Type | Name | Description |
---|---|---|
Mat | src | Mat |
Bitmap | dst | Mat |
Remarks
Author: shimat, Gummo (ROI support)
ToBitmap(Mat, PixelFormat)
Converts Mat to System.Drawing.Bitmap
Declaration
public static Bitmap ToBitmap(this Mat src, PixelFormat pf)
Parameters
Type | Name | Description |
---|---|---|
Mat | src | Mat |
PixelFormat | pf | Pixel Depth |
Returns
Type | Description |
---|---|
Bitmap |
ToMat(Bitmap)
Converts System.Drawing.Bitmap to Mat
Declaration
public static Mat ToMat(this Bitmap src)
Parameters
Type | Name | Description |
---|---|---|
Bitmap | src | System.Drawing.Bitmap object to be converted |
Returns
Type | Description |
---|---|
Mat | A Mat object which is converted from System.Drawing.Bitmap |
ToMat(Bitmap, Mat)
Converts System.Drawing.Bitmap to Mat
Declaration
public static void ToMat(this Bitmap src, Mat dst)
Parameters
Type | Name | Description |
---|---|---|
Bitmap | src | System.Drawing.Bitmap object to be converted |
Mat | dst | A Mat object which is converted from System.Drawing.Bitmap |