Declaration [src]

gdk_texture_save_to_png (
  GdkTexture* texture,
  const char* filename

Description [src]

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 use gdk_texture_save_to_png_bytes() or look into the gdk-pixbuf library.



Type: const char*

The filename to store to.

The data is owned by the caller of the method.
The value is a file system path, using the OS encoding.

Return value

Type: gboolean

TRUE if saving succeeded, FALSE on failure.