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.
읽는 시간 1분최근 업데이트: 한 달 전
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. |