- _reloadHook
void _reloadHook(RID rid)
- create
void create(long width, long height, long format, long flags)
Create a new ImageTexture with "width" and "height".
"format" one of Image.FORMAT_*.
"flags" one or more of Texture.FLAG_*.
- createFromImage
void createFromImage(Image image, long flags)
Create a new ImageTexture from an Image with "flags" from Texture.FLAG_*. An sRGB to linear color space conversion can take place, according to Image.FORMAT_*.
- getFormat
Image.Format getFormat()
Return the format of the ImageTexture, one of Image.FORMAT_*.
- getLossyStorageQuality
double getLossyStorageQuality()
- getStorage
ImageTexture.Storage getStorage()
- load
GodotError load(StringArg0 path)
Load an ImageTexture from a file path.
- opAssign
ImageTexture opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(ImageTexture other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- setData
void setData(Image image)
Set the Image of this ImageTexture.
- setLossyStorageQuality
void setLossyStorageQuality(double quality)
- setSizeOverride
void setSizeOverride(Vector2 size)
Resizes the ImageTexture to the specified dimensions.
- setStorage
void setStorage(long mode)
A Texture based on an Image.
Can be created from an Image with createFromImage.