(GDScript) How to change width and height of an image without stretching? (Just getting more pixels)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By NimBlemations

I am asking this because I want to try generating sprite sheets (The type of sprite sheets with the different regions navigated by JSON/XML), and I want to scale an image and have other pixels to manipulate in order to replicate the other image beside/below the 1st one. How would I go about doing this?

Well, actually, there might be one solution, just going along with creation of the image instead.

Maybe calculating the image enough for it to be created initially with the exact amount of pixels needed.

Using the images to determine integers of the sprite sheet’s initial size.

Yeah, y’know, that just might work!

NimBlemations | 2021-11-22 01:38