save_to_png


Description:

public bool save_to_png (string filename)

Store the given this 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 [[email protected]] or other location, you might want to use [[email protected]_to_png_bytes] or look into the gdk-pixbuf library.

Parameters:

this

a `GdkTexture`

filename

the filename to store to

Returns:

true if saving succeeded, false on failure.




2022 vala-language.org