Hello all!
I'm currently running into a problem while attempting to pixelate an image in GDScript.
My current process is loading an image, resizing the image along with Image.INTERPOLATE_NEAREST
to my desired pixel image size eg (32x32 pixels). However, after the resize function is called, the image's width and height have not changed and the image seems to remain the same.
Here is the example code I'm using
var image := Image.new()
image.load("path/to/image")
image.lock()
image.resize(32, 32, Image.INTERPOLATE_NEAREST)
image.unlock()
Any help at all would be greatly appreciated!