Class JpegEncoder
Inherited Members
Namespace: Global Namespace
Assembly: Unity.Simulation.Capture.dll
Syntax
public class JpegEncoder
Methods
Decode(byte[], ref int, ref int)
Declaration
public static byte[] Decode(byte[] jpg, ref int width, ref int height)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | jpg | |
| int | width | |
| int | height |
Returns
| Type | Description |
|---|---|
| byte[] |
Encode(byte[], int, int, int, GraphicsFormat, int, Flags)
Declaration
public static byte[] Encode(byte[] raw, int width, int height, int pixelSize, GraphicsFormat textureFormat, int quality = 75, JpegEncoder.Flags flags = Flags.TJ_BOTTOMUP)
Parameters
| Type | Name | Description |
|---|---|---|
| byte[] | raw | |
| int | width | |
| int | height | |
| int | pixelSize | |
| GraphicsFormat | textureFormat | |
| int | quality | |
| JpegEncoder.Flags | flags |
Returns
| Type | Description |
|---|---|
| byte[] |