Click or drag to resize

ImageGetPixel Method

Returns the color of the pixel at (x, y) if the image is locked. If the image is unlocked, it always returns a Color with the value (0, 0, 0, 1.0). This is the same as GetPixelv(Vector2), but two integer arguments instead of a Vector2 argument.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Color GetPixel(
	int x,
	int y
)

Parameters

x
Type: SystemInt32

[Missing <param name="x"/> documentation for "M:Godot.Image.GetPixel(System.Int32,System.Int32)"]

y
Type: SystemInt32

[Missing <param name="y"/> documentation for "M:Godot.Image.GetPixel(System.Int32,System.Int32)"]

Return Value

Type: Color

[Missing <returns> documentation for "M:Godot.Image.GetPixel(System.Int32,System.Int32)"]

See Also