UnityEngine.ImageConversionModule 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. 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. The default is 0, which means Unity calculates the length automatically. Flags used to control compression and the output format. The default is Texture2D.EXRFlags.None 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. The default is 0, which means Unity calculates the length automatically. JPG quality to encode with. The range is 1 through 100. 1 is the lowest quality. The default is 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. The default is 0, which means Unity calculates the length automatically. 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. The default is 0, which means Unity calculates the length automatically. 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. The default is 0, which means Unity calculates the length automatically. Flags used to control compression and the output format. The default is Texture2D.EXRFlags.None 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. The default is 0, which means Unity calculates the length automatically. JPG quality to encode with. The range is 1 through 100. 1 is the lowest quality. The default is 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. The default is 0, which means Unity calculates the length automatically. 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. The default is 0, which means Unity calculates the length automatically. Encodes this texture into the EXR format. The texture to convert. Flags used to control compression and the output format. The default is Texture2D.EXRFlags.None Encodes this texture into JPG format. Text texture to convert. JPG quality to encode with. The range is 1 through 100. 1 is the lowest quality. The default is 75. Encodes this texture into JPG format. Text texture to convert. JPG quality to encode with. The range is 1 through 100. 1 is the lowest quality. The default is 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 EXR 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 for converting image data.