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)
Syntaxpublic static Bitmap ToBitmap<TColor, TDepth>(
this Image<TColor, TDepth> image,
int width,
int height
)
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),
width As Integer,
height As Integer
) 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,
int width,
int height
)
[<ExtensionAttribute>]
static member ToBitmap :
image : Image<'TColor, 'TDepth> *
width : int *
height : int -> Bitmap when 'TColor : struct, new() and IColor when '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