NativeImageIOPixelToJpeg Method |
https://www.emgu.com
Converting raw pixel data to jpeg stream
Namespace:
Emgu.Models
Assembly:
Emgu.TF.Lite.Models (in Emgu.TF.Lite.Models.dll) Version: 2.19.0.1709+574f567263f3c76bb77304b9eeb79ab6660ba101
Syntaxpublic static byte[] PixelToJpeg(
byte[] rawPixel,
int width,
int height,
int channels
)
Public Shared Function PixelToJpeg (
rawPixel As Byte(),
width As Integer,
height As Integer,
channels As Integer
) As Byte()
public:
static array<unsigned char>^ PixelToJpeg(
array<unsigned char>^ rawPixel,
int width,
int height,
int channels
)
static member PixelToJpeg :
rawPixel : byte[] *
width : int *
height : int *
channels : int -> byte[]
Parameters
- rawPixel
- Type: SystemByte
The raw pixel data - width
- Type: SystemInt32
The width of the image - height
- Type: SystemInt32
The height of the image - channels
- Type: SystemInt32
The number of channels
Return Value
Type:
ByteThe jpeg stream
See Also