Texture.saveToPng

Store the given @texture to the @filename as a PNG file.

This is a utility function intended for debugging and testing. If you want more control over formats, proper error handling or want to store to a GFile or other location, you might want to look into using the gdk-pixbuf library.

class Texture
bool
saveToPng
(
string filename
)

Parameters

filename string

the filename to store to

Return Value

Type: bool

%TRUE if saving succeeded, %FALSE on failure.

Meta