doc: Fix Image 'set_pixel' doc for use of 'create'

Fixes #72904.
This commit is contained in:
Rémi Verschelde
2023-02-08 18:46:00 +01:00
parent c4fb119f03
commit 1bdc85b917
2 changed files with 5 additions and 10 deletions

View File

@@ -141,8 +141,7 @@
GD.PushError("Couldn't load the image.");
}
var texture = new ImageTexture();
texture.CreateFromImage(image);
var texture = ImageTexture.CreateFromImage(image);
// Display the image in a TextureRect node.
var textureRect = new TextureRect();