#Image resize does nothing ( Beta 7 and 8)
4 messages · Page 1 of 1 (latest)
Just checked the api docs too - thought resize might return the resized image but nope
Image create(width: int, height: int, use_mipmaps: bool, format: Format) static
Creates an empty image of given size and format. See Format constants. If use_mipmaps is true, then generate mipmaps for this image. See the generate_mipmaps().
if you did Image.new() for d - d.create doesn't make an image in d - it creates a new image and returns it - which you do not store here
though why it doesn't modify the size is still questionable (perhaps because there's no data?)