ImageConversion
This class provides utility and extension methods to convert image data to and from PNG, JPEG and EXR formats, and to encode image data to TGA format.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.ImageConversionModule
public static class ImageConversion
Static Properties
Property | Description |
|---|---|
| EnableLegacyPngGammaRuntimeLoadBehavior | Enables legacy PNG runtime import behavior. |
Static Methods
Method | Description |
|---|---|
| EncodeArrayToEXR | Encodes this array into the EXR format. |
| EncodeArrayToJPG | Encodes this array into JPG format. |
| EncodeArrayToPNG | Encodes this array into PNG format. |
| EncodeArrayToTGA | Encodes this array into TGA format. |
| EncodeNativeArrayToEXR | Encodes this native array into the EXR format. |
| EncodeNativeArrayToJPG | Encodes this native array into JPG format. |
| EncodeNativeArrayToPNG | Encodes this native array into PNG format. |
| EncodeNativeArrayToTGA | Encodes this native array into TGA format. |
| EncodeToEXR | Encodes this texture into the EXR format. |
| EncodeToJPG | Encodes this texture into JPG format. |
| EncodeToPNG | Encodes this texture into PNG format. |
| EncodeToTGA | Encodes the specified texture in TGA format. |
| LoadImage | Loads PNG, JPG or EXR image byte array into a texture. |