Class ImageConversion
Inheritance
ImageConversion
Assembly: UnityEngine.dll
Syntax
public static class ImageConversion
Methods
|
Improve this Doc
View Source
EncodeToEXR(Texture2D)
Declaration
public static byte[] EncodeToEXR(this Texture2D tex)
Parameters
Returns
EncodeToEXR(Texture2D, Texture2D.EXRFlags)
Declaration
public static byte[] EncodeToEXR(this Texture2D tex, Texture2D.EXRFlags flags)
Parameters
Returns
|
Improve this Doc
View Source
EncodeToJPG(Texture2D)
Declaration
public static byte[] EncodeToJPG(this Texture2D tex)
Parameters
Returns
EncodeToJPG(Texture2D, Int32)
Declaration
public static byte[] EncodeToJPG(this Texture2D tex, int quality)
Parameters
Returns
EncodeToPNG(Texture2D)
Declaration
public static byte[] EncodeToPNG(this Texture2D tex)
Parameters
Returns
EncodeToTGA(Texture2D)
Declaration
public static byte[] EncodeToTGA(this Texture2D tex)
Parameters
Returns
|
Improve this Doc
View Source
LoadImage(Texture2D, Byte[])
Declaration
public static bool LoadImage(this Texture2D tex, byte[] data)
Parameters
Returns
LoadImage(Texture2D, Byte[], Boolean)
Declaration
public static bool LoadImage(this Texture2D tex, byte[] data, bool markNonReadable)
Parameters
Returns