How to save a im.* object to a png-file with transparent bg?
Posted: Mon Dec 05, 2011 4:57 pm
Subj. I have a im.MatrixColor object, how to save it's content to a png file?
In old RenPy versions I've done something like this and it worked:
In old RenPy versions I've done something like this and it worked:
Code: Select all
img = im_ref.render(renpy.config.screen_width,renpy.config.screen_height,0,0)
surf = img.pygame_surface()
pygame.image.save(surf,filename)