Click or drag to resize

ImageGenerateMipmaps Method

Generates mipmaps for the image. Mipmaps are precalculated and lower resolution copies of the image. Mipmaps are automatically used if the image needs to be scaled down when rendered. This improves image quality and the performance of the rendering. Returns an error if the image is compressed, in a custom format or if the image's width/height is 0.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Error GenerateMipmaps(
	bool renormalize = false
)

Parameters

renormalize (Optional)
Type: SystemBoolean

[Missing <param name="renormalize"/> documentation for "M:Godot.Image.GenerateMipmaps(System.Boolean)"]

Return Value

Type: Error

[Missing <returns> documentation for "M:Godot.Image.GenerateMipmaps(System.Boolean)"]

See Also