BitmapExtensionRawDataToBitmap Method |
http://www.emgu.com
Convert raw data to 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 RawDataToBitmap(
IntPtr scan0,
int step,
Size size,
Type srcColorType,
int numberOfChannels,
Type srcDepthType,
bool tryDataSharing = false
)
Public Shared Function RawDataToBitmap (
scan0 As IntPtr,
step As Integer,
size As Size,
srcColorType As Type,
numberOfChannels As Integer,
srcDepthType As Type,
Optional tryDataSharing As Boolean = false
) As Bitmap
public:
static Bitmap^ RawDataToBitmap(
IntPtr scan0,
int step,
Size size,
Type^ srcColorType,
int numberOfChannels,
Type^ srcDepthType,
bool tryDataSharing = false
)
static member RawDataToBitmap :
scan0 : IntPtr *
step : int *
size : Size *
srcColorType : Type *
numberOfChannels : int *
srcDepthType : Type *
?tryDataSharing : bool
(* Defaults:
let _tryDataSharing = defaultArg tryDataSharing false
*)
-> Bitmap
Parameters
- scan0
- Type: SystemIntPtr
The pointer to the raw data - step
- Type: SystemInt32
The step - size
- Type: System.DrawingSize
The size of the image - srcColorType
- Type: SystemType
The source image color type - numberOfChannels
- Type: SystemInt32
The number of channels - srcDepthType
- Type: SystemType
The source image depth type - tryDataSharing (Optional)
- Type: SystemBoolean
Try to create Bitmap that shares the data with the image
Return Value
Type:
BitmapThe Bitmap
See Also