Page 1 of 1

How to save a im.* object to a png-file with transparent bg?

Posted: Mon Dec 05, 2011 4:57 pm
by iichan_lolbot
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:

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)

Re: How to save a im.* object to a png-file with transparent

Posted: Mon Dec 12, 2011 6:28 pm
by iichan_lolbot
Hello?

Re: How to save a im.* object to a png-file with transparent

Posted: Mon Dec 12, 2011 11:41 pm
by PyTom
There isn't a supported way of doing this.