![]() |
Reply From: | miremrie |
I’ve had success with this code loading .png in Godot 4.0 stable.
There is an example in docs for ImageTexture
var image = Image.load_from_file(path)
var texture = ImageTexture.create_from_image(image)
brush.texture = texture
Here, path
is an absolute path received by FileDialog picker, with file in the desktop folder, brush
is a TextureRect
Tried on Windows 10. Seems to work in exported project also.