save_thumbnail


Description:

public bool save_thumbnail (int width, int height, string format, string location) throws Error

Saves the currently displayed image of the pipeline in preview to the given location, in the specified dimensions and format.

Parameters:

this

A Pipeline in gst_state_playing or gst_state_paused

width

The requested pixel width of the image, or -1 to use the native size

height

The requested pixel height of the image, or -1 to use the native size

format

The desired mime type (for example, "image/jpeg")

location

The path to save the thumbnail to

Returns:

true if this's current image preview was successfully saved to location using the given format, height and width.