Click or drag to resize

RichTextLabelAddImage Method

Adds an image's opening and closing tags to the tag stack, optionally providing a width and height to resize the image.

If width or height is set to 0, the image size will be adjusted in order to keep the original aspect ratio.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void AddImage(
	Texture image,
	int width = 0,
	int height = 0
)

Parameters

image
Type: GodotTexture

[Missing <param name="image"/> documentation for "M:Godot.RichTextLabel.AddImage(Godot.Texture,System.Int32,System.Int32)"]

width (Optional)
Type: SystemInt32

[Missing <param name="width"/> documentation for "M:Godot.RichTextLabel.AddImage(Godot.Texture,System.Int32,System.Int32)"]

height (Optional)
Type: SystemInt32

[Missing <param name="height"/> documentation for "M:Godot.RichTextLabel.AddImage(Godot.Texture,System.Int32,System.Int32)"]

See Also