An automatically scalable [Texture2D] based on an SVG image.
An automatically scalable [Texture2D] based on an SVG image. [DPITexture]s are used to automatically re-rasterize icons and other texture based UI theme elements to match viewport scale and font oversampling. See also [member ProjectSettings.display/window/stretch/mode] ("canvas_items" mode) and [member Viewport.oversampling_override].
Creates a new [DPITexture] and initializes it by allocating and setting the SVG data to [param source].
Returns the [RID] of the texture rasterized to match the oversampling of the currently drawn canvas item.
Returns this SVG texture's source code.
Resizes the texture to the specified dimensions.
Sets this SVG texture's source code.
- Texture scale. [code]1.0[/code] is the original SVG size. Higher values result in a larger image.
- If set, remaps texture colors according to [Color]-[Color] map.
- Overrides texture saturation.