Click or drag to resize

BitmapExtensionToBitmapTColor, TDepth Method (ImageTColor, TDepth, Int32, Int32)

http://www.emgu.com
Create a Bitmap image of certain size

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)
Syntax
public static Bitmap ToBitmap<TColor, TDepth>(
	this Image<TColor, TDepth> image,
	int width,
	int height
)
where TColor : struct, new(), IColor
where TDepth : new()

Parameters

image
Type: Emgu.CVImageTColor, TDepth
The image to be converted to Bitmap
width
Type: SystemInt32
The width of the bitmap
height
Type: SystemInt32
The height of the bitmap

Type Parameters

TColor

[Missing <typeparam name="TColor"/> documentation for "M:Emgu.CV.BitmapExtension.ToBitmap``2(Emgu.CV.Image{``0,``1},System.Int32,System.Int32)"]

TDepth

[Missing <typeparam name="TDepth"/> documentation for "M:Emgu.CV.BitmapExtension.ToBitmap``2(Emgu.CV.Image{``0,``1},System.Int32,System.Int32)"]

Return Value

Type: Bitmap
This image in Bitmap format of the specific size

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).
See Also