Метод | Описание | |
---|---|---|
GetPixel ( int x, int y ) : Color |
Gets the current color of the pixel.
|
|
Lock ( ) : |
Call this before any modification/read of the texture via GetPixel/SetPixel If you try to modify/acces the texture without it, it will still work but really slower Because it will lock and unlock the texture each time you access a pixel.
|
|
MakeColorKey ( |
||
MakeColorKey ( |
||
MakeColorKey ( |
||
Modify ( ModifyPixel callback ) : void |
Modifies the texture using a simple callback called on each pixel's modification.
|
|
RegenerateMipMapLevels ( ) : void | ||
Retrieve ( ) : ].Color[ |
Safe and fast way to retrieve all pixels of the texture.
|
|
SafeCopyInto ( |
||
Save ( string name ) : void |
Saves the texture to a file
|
|
SetPixel ( int x, int y, Color color ) : void |
Sets the current color of a pixel
|
|
Texture ( |
||
Unlock ( ) : void |
You must always call this after each lock.
|
Метод | Описание | |
---|---|---|
ModifyA1R5G5B5 ( ModifyPixel callback ) : void | ||
ModifyA8R8G8B8 ( ModifyPixel callback ) : void | ||
ModifyR5G6B5 ( ModifyPixel callback ) : void | ||
RetrieveA1R5G5B5 ( ) : ].Color[ | ||
RetrieveA8R8G8B8 ( ) : ].Color[ | ||
RetrieveR5G6B5 ( ) : ].Color[ |
Метод | Описание | |
---|---|---|
LockResult_GetPixel ( |
||
LockResult_SetPixel ( |
||
Texture_GetColorFormat ( |
||
Texture_GetDriverType ( |
||
Texture_GetName ( |
||
Texture_GetOriginalSize ( |
||
Texture_GetPitch ( |
||
Texture_Lock ( |
||
Texture_RegenerateMipMapLevels ( |
||
Texture_UnLock ( |
public GetPixel ( int x, int y ) : Color | ||
x | int | Width of the pixel |
y | int | Height of the pixel |
Результат | Color |
public MakeColorKey ( |
||
drv | ||
Результат | void |
public MakeColorKey ( |
||
drv | ||
color | Color | |
Результат | void |
public MakeColorKey ( |
||
drv | ||
colorKeyPixelPos | IrrlichtNETCP.Position2D | |
Результат | void |
public Modify ( ModifyPixel callback ) : void | ||
callback | ModifyPixel | Callback called for each pixel |
Результат | void |
protected ModifyA1R5G5B5 ( ModifyPixel callback ) : void | ||
callback | ModifyPixel | |
Результат | void |
protected ModifyA8R8G8B8 ( ModifyPixel callback ) : void | ||
callback | ModifyPixel | |
Результат | void |
protected ModifyR5G6B5 ( ModifyPixel callback ) : void | ||
callback | ModifyPixel | |
Результат | void |
public SafeCopyInto ( |
||
tex | ||
Результат | void |
public Save ( string name ) : void | ||
name | string | Path to the file in Irrlicht's working directory |
Результат | void |
public SetPixel ( int x, int y, Color color ) : void | ||
x | int | Width of the pixel |
y | int | Height of the pixel |
color | Color | Color of the pixel |
Результат | void |