Click or drag to resize

VisualServerCanvasItemAddNinePatch Method

Adds a nine patch image to the CanvasItem's draw commands.

See NinePatchRect for more explanation.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static void CanvasItemAddNinePatch(
	RID item,
	Rect2 rect,
	Rect2 source,
	RID texture,
	Vector2 topleft,
	Vector2 bottomright,
	VisualServerNinePatchAxisMode xAxisMode = VisualServerNinePatchAxisMode.Stretch,
	VisualServerNinePatchAxisMode yAxisMode = VisualServerNinePatchAxisMode.Stretch,
	bool drawCenter = true,
	Color? modulate = null,
	RID normalMap = null
)

Parameters

item
Type: GodotRID

[Missing <param name="item"/> documentation for "M:Godot.VisualServer.CanvasItemAddNinePatch(Godot.RID,Godot.Rect2,Godot.Rect2,Godot.RID,Godot.Vector2,Godot.Vector2,Godot.VisualServer.NinePatchAxisMode,Godot.VisualServer.NinePatchAxisMode,System.Boolean,System.Nullable{Godot.Color},Godot.RID)"]

rect
Type: GodotRect2

[Missing <param name="rect"/> documentation for "M:Godot.VisualServer.CanvasItemAddNinePatch(Godot.RID,Godot.Rect2,Godot.Rect2,Godot.RID,Godot.Vector2,Godot.Vector2,Godot.VisualServer.NinePatchAxisMode,Godot.VisualServer.NinePatchAxisMode,System.Boolean,System.Nullable{Godot.Color},Godot.RID)"]

source
Type: GodotRect2

[Missing <param name="source"/> documentation for "M:Godot.VisualServer.CanvasItemAddNinePatch(Godot.RID,Godot.Rect2,Godot.Rect2,Godot.RID,Godot.Vector2,Godot.Vector2,Godot.VisualServer.NinePatchAxisMode,Godot.VisualServer.NinePatchAxisMode,System.Boolean,System.Nullable{Godot.Color},Godot.RID)"]

texture
Type: GodotRID

[Missing <param name="texture"/> documentation for "M:Godot.VisualServer.CanvasItemAddNinePatch(Godot.RID,Godot.Rect2,Godot.Rect2,Godot.RID,Godot.Vector2,Godot.Vector2,Godot.VisualServer.NinePatchAxisMode,Godot.VisualServer.NinePatchAxisMode,System.Boolean,System.Nullable{Godot.Color},Godot.RID)"]

topleft
Type: GodotVector2

[Missing <param name="topleft"/> documentation for "M:Godot.VisualServer.CanvasItemAddNinePatch(Godot.RID,Godot.Rect2,Godot.Rect2,Godot.RID,Godot.Vector2,Godot.Vector2,Godot.VisualServer.NinePatchAxisMode,Godot.VisualServer.NinePatchAxisMode,System.Boolean,System.Nullable{Godot.Color},Godot.RID)"]

bottomright
Type: GodotVector2

[Missing <param name="bottomright"/> documentation for "M:Godot.VisualServer.CanvasItemAddNinePatch(Godot.RID,Godot.Rect2,Godot.Rect2,Godot.RID,Godot.Vector2,Godot.Vector2,Godot.VisualServer.NinePatchAxisMode,Godot.VisualServer.NinePatchAxisMode,System.Boolean,System.Nullable{Godot.Color},Godot.RID)"]

xAxisMode (Optional)
Type: GodotVisualServerNinePatchAxisMode

[Missing <param name="xAxisMode"/> documentation for "M:Godot.VisualServer.CanvasItemAddNinePatch(Godot.RID,Godot.Rect2,Godot.Rect2,Godot.RID,Godot.Vector2,Godot.Vector2,Godot.VisualServer.NinePatchAxisMode,Godot.VisualServer.NinePatchAxisMode,System.Boolean,System.Nullable{Godot.Color},Godot.RID)"]

yAxisMode (Optional)
Type: GodotVisualServerNinePatchAxisMode

[Missing <param name="yAxisMode"/> documentation for "M:Godot.VisualServer.CanvasItemAddNinePatch(Godot.RID,Godot.Rect2,Godot.Rect2,Godot.RID,Godot.Vector2,Godot.Vector2,Godot.VisualServer.NinePatchAxisMode,Godot.VisualServer.NinePatchAxisMode,System.Boolean,System.Nullable{Godot.Color},Godot.RID)"]

drawCenter (Optional)
Type: SystemBoolean

[Missing <param name="drawCenter"/> documentation for "M:Godot.VisualServer.CanvasItemAddNinePatch(Godot.RID,Godot.Rect2,Godot.Rect2,Godot.RID,Godot.Vector2,Godot.Vector2,Godot.VisualServer.NinePatchAxisMode,Godot.VisualServer.NinePatchAxisMode,System.Boolean,System.Nullable{Godot.Color},Godot.RID)"]

modulate (Optional)
Type: SystemNullableColor
If the parameter is null, then the default value is new Color(1, 1, 1, 1)
normalMap (Optional)
Type: GodotRID

[Missing <param name="normalMap"/> documentation for "M:Godot.VisualServer.CanvasItemAddNinePatch(Godot.RID,Godot.Rect2,Godot.Rect2,Godot.RID,Godot.Vector2,Godot.Vector2,Godot.VisualServer.NinePatchAxisMode,Godot.VisualServer.NinePatchAxisMode,System.Boolean,System.Nullable{Godot.Color},Godot.RID)"]

See Also