메소드 | 설명 | |
---|---|---|
Compress ( bool highQuality ) : void |
Compress texture into DXT format.
|
|
CreateExternalTexture ( int width, int height, TextureFormat format, bool mipmap, bool linear, IntPtr nativeTex ) : |
Creates Unity Texture out of externally created native texture object.
|
|
EncodeToJPG ( ) : byte[] |
Encodes this texture into JPG format.
|
|
GetPixel ( int x, int y ) : |
Returns pixel color at coordinates (x, y).
|
|
GetPixelBilinear ( float u, float v ) : |
Returns filtered pixel color at normalized coordinates (u, v).
|
|
GetPixels ( [ miplevel ) : UnityEngine.Color[] |
Get the pixel colors from the texture.
|
|
LoadRawTextureData ( IntPtr data, int size ) : void |
Fills texture pixels with raw preformatted data.
|
|
LoadRawTextureData ( byte data ) : void |
Fills texture pixels with raw preformatted data.
|
|
ReadPixels ( |
Read pixels from screen into the saved texture data.
|
|
Resize ( int width, int height ) : bool |
Resizes the texture.
|
|
SetPixel ( int x, int y, |
Sets pixel color at coordinates (x,y).
|
|
SetPixels ( |
Set a block of pixel colors.
|
|
SetPixels32 ( |
Set a block of pixel colors.
|
|
SetPixels32 ( int x, int y, int blockWidth, int blockHeight, |
Set a block of pixel colors.
|
|
Texture2D ( int width, int height ) : System |
Create a new empty texture.
|
|
Texture2D ( int width, int height, TextureFormat format, bool mipmap ) : System |
Create a new empty texture.
|
|
Texture2D ( int width, int height, TextureFormat format, bool mipmap, bool linear ) : System |
See Also: SetPixel, SetPixels, Apply functions.
|
메소드 | 설명 | |
---|---|---|
Apply ( ) : void | ||
Apply ( [ updateMipmaps, [ makeNoLongerReadable ) : void | ||
Apply ( bool updateMipmaps ) : void | ||
EncodeToJPG ( int quality ) : byte[] | ||
EncodeToPNG ( ) : byte[] | ||
GetPixels ( ) : UnityEngine.Color[] | ||
GetPixels ( int x, int y, int blockWidth, int blockHeight ) : UnityEngine.Color[] | ||
GetPixels ( int x, int y, int blockWidth, int blockHeight, [ miplevel ) : UnityEngine.Color[] | ||
GetPixels32 ( ) : UnityEngine.Color32[] | ||
GetPixels32 ( [ miplevel ) : UnityEngine.Color32[] | ||
GetRawTextureData ( ) : byte[] | ||
INTERNAL_CALL_Compress ( |
||
INTERNAL_CALL_GetPixel ( |
||
INTERNAL_CALL_GetPixelBilinear ( |
||
INTERNAL_CALL_ReadPixels ( |
||
INTERNAL_CALL_SetPixel ( |
||
Internal_Create ( [ mono, int width, int height, TextureFormat format, bool mipmap, bool linear, IntPtr nativeTex ) : void | ||
Internal_ResizeWH ( int width, int height ) : bool | ||
LoadImage ( byte data ) : bool | ||
LoadImage ( byte data, [ markNonReadable ) : bool | ||
LoadRawTextureData_ImplArray ( byte data ) : void | ||
LoadRawTextureData_ImplPointer ( IntPtr data, int size ) : void | ||
PackTextures ( |
||
PackTextures ( |
||
PackTextures ( |
||
ReadPixels ( |
||
Resize ( int width, int height, TextureFormat format, bool hasMipMap ) : bool | ||
SetAllPixels32 ( |
||
SetBlockOfPixels32 ( int x, int y, int blockWidth, int blockHeight, |
||
SetPixels ( |
||
SetPixels ( int x, int y, int blockWidth, int blockHeight, |
||
SetPixels ( int x, int y, int blockWidth, int blockHeight, |
||
SetPixels32 ( |
||
SetPixels32 ( int x, int y, int blockWidth, int blockHeight, |
||
Texture2D ( int width, int height, TextureFormat format, bool mipmap, bool linear, IntPtr nativeTex ) : System | ||
UpdateExternalTexture ( IntPtr nativeTex ) : void |
public static CreateExternalTexture ( int width, int height, TextureFormat format, bool mipmap, bool linear, IntPtr nativeTex ) : |
||
width | int | Width of texture in pixels. |
height | int | Height of texture in pixels. |
format | TextureFormat | Format of underlying texture object. |
mipmap | bool | Does the texture have mipmaps? |
linear | bool | Is texture using linear color space? |
nativeTex | IntPtr | Native 2D texture object. |
리턴 |
public GetPixelBilinear ( float u, float v ) : |
||
u | float | |
v | float | |
리턴 |
public GetPixels ( [ miplevel ) : UnityEngine.Color[] | ||
miplevel | [ | The mipmap level to fetch the pixels from. Defaults to zero. |
리턴 | UnityEngine.Color[] |
public LoadRawTextureData ( IntPtr data, int size ) : void | ||
data | IntPtr | Byte array to initialize texture pixels with. |
size | int | Size of data in bytes. |
리턴 | void |
public LoadRawTextureData ( byte data ) : void | ||
data | byte | Byte array to initialize texture pixels with. |
리턴 | void |
public ReadPixels ( |
||
source | Rectangular region of the view to read from. Pixels are read from current render target. | |
destX | int | Horizontal pixel position in the texture to place the pixels that are read. |
destY | int | Vertical pixel position in the texture to place the pixels that are read. |
recalculateMipMaps | [ | Should the texture's mipmaps be recalculated after reading? |
리턴 | void |
public SetPixel ( int x, int y, |
||
x | int | |
y | int | |
color | ||
리턴 | void |
public SetPixels ( |
||
colors | The array of pixel colours to assign (a 2D image flattened to a 1D array). | |
miplevel | [ | The mip level of the texture to write to. |
리턴 | void |
public SetPixels32 ( |
||
colors | ||
miplevel | [ | |
리턴 | void |
public SetPixels32 ( int x, int y, int blockWidth, int blockHeight, |
||
x | int | |
y | int | |
blockWidth | int | |
blockHeight | int | |
colors | ||
miplevel | [ | |
리턴 | void |
public Texture2D ( int width, int height ) : System | ||
width | int | |
height | int | |
리턴 | System |
public Texture2D ( int width, int height, TextureFormat format, bool mipmap ) : System | ||
width | int | |
height | int | |
format | TextureFormat | |
mipmap | bool | |
리턴 | System |
public Texture2D ( int width, int height, TextureFormat format, bool mipmap, bool linear ) : System | ||
width | int | |
height | int | |
format | TextureFormat | |
mipmap | bool | |
linear | bool | |
리턴 | System |