BitmapExtensionToBitmapTColor, TDepth Method (ImageTColor, TDepth) |
http://www.emgu.com
Convert this image into Bitmap, the pixel values are copied over to the Bitmap
Namespace:
Emgu.CV
Assemblies:
Emgu.CV.Platform.NetCore (in Emgu.CV.Platform.NetCore.dll) Version: 4.3.0.3890
Emgu.CV.Platform.NetFramework (in Emgu.CV.Platform.NetFramework.dll) Version: 4.3.0.3890 (4.3.0.3890)
Syntaxpublic static Bitmap ToBitmap<TColor, TDepth>(
this Image<TColor, TDepth> image
)
where TColor : struct, new(), IColor
where TDepth : new()
<ExtensionAttribute>
Public Shared Function ToBitmap(Of TColor As {Structure, New, IColor}, TDepth As New) (
image As Image(Of TColor, TDepth)
) As Bitmap
public:
[ExtensionAttribute]
generic<typename TColor, typename TDepth>
where TColor : value class, gcnew(), IColor
where TDepth : gcnew()
static Bitmap^ ToBitmap(
Image<TColor, TDepth>^ image
)
[<ExtensionAttribute>]
static member ToBitmap :
image : Image<'TColor, 'TDepth> -> Bitmap when 'TColor : struct, new() and IColor when 'TDepth : new()
Parameters
- image
- Type: Emgu.CVImageTColor, TDepth
[Missing <param name="image"/> documentation for "M:Emgu.CV.BitmapExtension.ToBitmap``2(Emgu.CV.Image{``0,``1})"]
Type Parameters
- TColor
[Missing <typeparam name="TColor"/> documentation for "M:Emgu.CV.BitmapExtension.ToBitmap``2(Emgu.CV.Image{``0,``1})"]
- TDepth
[Missing <typeparam name="TDepth"/> documentation for "M:Emgu.CV.BitmapExtension.ToBitmap``2(Emgu.CV.Image{``0,``1})"]
Return Value
Type:
Bitmap This image in Bitmap format, the pixel data are copied over to the Bitmap
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ImageTColor,
TDepth. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks For better performance on Image<Gray, Byte> and Image<Bgr, Byte>, consider using the Bitmap property
See Also