A [Texture] based on an [Image].
A [Texture] based on an [Image]. Can be created from an [Image] with [method create_from_image].
[b]Note:[/b] The maximum image size is 16384×16384 pixels due to graphics hardware limitations. Larger images will fail to import.
Create a new [ImageTexture] with [code]width[/code] and [code]height[/code].
[code]format[/code] is a value from [enum Image.Format], [code]flags[/code] is any combination of [enum Texture.Flags].
Create a new [ImageTexture] from an [Image] with [code]flags[/code] from [enum Texture.Flags]. An sRGB to linear color space conversion can take place, according to [enum Image.Format].
Returns the format of the [ImageTexture], one of [enum Image.Format].
Load an [ImageTexture] from a file path.
Sets the [Image] of this [ImageTexture].
Resizes the [ImageTexture] to the specified dimensions.
The storage quality for [constant STORAGE_COMPRESS_LOSSY].
The storage type (raw, lossy, or compressed).
[Image] data is stored raw and unaltered.
[Image] data is compressed with a lossy algorithm. You can set the storage quality with [member lossy_quality].
[Image] data is compressed with a lossless algorithm.