Click or drag to resize

ImageSetPixelv Method

Sets the Color of the pixel at (dst.x, dst.y) if the image is locked. Note that the dst values must be integers. Example:

var img = Image.new()
img.create(img_width, img_height, false, Image.FORMAT_RGBA8)
img.lock()
img.set_pixelv(Vector2(x, y), color) # Works
img.unlock()
img.set_pixelv(Vector2(x, y), color) # Does not have an effect

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public void SetPixelv(
	Vector2 dst,
	Color color
)

Parameters

dst
Type: GodotVector2

[Missing <param name="dst"/> documentation for "M:Godot.Image.SetPixelv(Godot.Vector2,Godot.Color)"]

color
Type: GodotColor

[Missing <param name="color"/> documentation for "M:Godot.Image.SetPixelv(Godot.Vector2,Godot.Color)"]

See Also