Class PngEncoder
Assembly: Unity.Simulation.Capture.dll
Syntax
Methods
Decode(byte[], ref int, ref int, ref ColorType, ref int)
Declaration
public static byte[] Decode(byte[] raw, ref int width, ref int height, ref PngEncoder.ColorType colorType, ref int bitDepth)
Parameters
Returns
Encode(byte[], int, int, ColorType, int, PngParam)
Declaration
public static byte[] Encode(byte[] raw, int width, int height, PngEncoder.ColorType colorType, int bitDepth, PngEncoder.PngParam pngParam = PngParam.None)
Parameters
Returns
GetTypeAndDepth(int, int, ref int)
Declaration
public static PngEncoder.ColorType GetTypeAndDepth(int blocksize, int componentCount, ref int bitDepth)
Parameters
| Type |
Name |
Description |
| int |
blocksize |
|
| int |
componentCount |
|
| int |
bitDepth |
|
Returns
Inspect(byte[], ref int, ref int, ref ColorType, ref int, ref int)
Declaration
public static int Inspect(byte[] raw, ref int width, ref int height, ref PngEncoder.ColorType colorType, ref int bitDepth, ref int outsize)
Parameters
Returns