UnityEngine.ImageConversionModule This class provides utility and extension methods to convert image data from or to PNG, EXR, TGA, and JPEG formats. Enables legacy PNG runtime import behavior. Encodes this array into the EXR format. The byte array to convert. The pixel format of the image data. The width of the image data in pixels. The height of the image data in pixels. The length of a single row in bytes. Flags used to control compression and the output format. Encodes this array into JPG format. The byte array to convert. The pixel format of the image data. The width of the image data in pixels. The height of the image data in pixels. The length of a single row in bytes. JPG quality to encode with, 1..100 (default 75). Encodes this array into PNG format. The byte array to convert. The pixel format of the image data. The width of the image data in pixels. The height of the image data in pixels. The length of a single row in bytes. Encodes this array into TGA format. The byte array to convert. The pixel format of the image data. The width of the image data in pixels. The height of the image data in pixels. The length of a single row in bytes. Encodes this native array into the EXR format. The native array to convert. The pixel format of the image data. The width of the image data in pixels. The height of the image data in pixels. The length of a single row in bytes. Flags used to control compression and the output format. Encodes this native array into JPG format. The native array to convert. The pixel format of the image data. The width of the image data in pixels. The height of the image data in pixels. The length of a single row in bytes. JPG quality to encode with, 1..100 (default 75). Encodes this native array into PNG format. The native array to convert. The pixel format of the image data. The width of the image data in pixels. The height of the image data in pixels. The length of a single row in bytes. Encodes this native array into TGA format. The native array to convert. The pixel format of the image data. The width of the image data in pixels. The height of the image data in pixels. The length of a single row in bytes. Encodes this texture into the EXR format. The texture to convert. Flags used to control compression and the output format. Encodes this texture into JPG format. Text texture to convert. JPG quality to encode with, 1..100 (default 75). Encodes this texture into JPG format. Text texture to convert. JPG quality to encode with, 1..100 (default 75). Encodes this texture into PNG format. The texture to convert. Encodes the specified texture in TGA format. The texture to encode. Loads PNG/JPG (or supported format) image byte array into a texture. The texture to load the image into. The byte array containing the image data to load. Set to false by default, pass true to optionally mark the texture as non-readable. Returns true if the data can be loaded, false otherwise. The ImageConversion module implements the ImageConversion class which provides helper methods to convert images from and to PNG, JPEG or EXR formats.