RunThumbnailFunc


Description:

[ CCode ( instance_pos = 4.9 ) ]
[ Version ( since = "3.0" ) ]
public delegate ValueArray RunThumbnailFunc (Procedure procedure, File file, int size, ProcedureConfig config)

The thumbnail function is run during the lifetime of the GIMP session, each time a plug-in thumbnail procedure is called.

[class@ThumbnailProcedure] are always run non-interactively.

On success, the returned array must contain: 1. a [class@Image]: this is the only mandatory return value. It should ideally be a simple image whose dimensions are closest to size and meant to be displayed as a small static image. 2. (optional) the full image's width (not the thumbnail's image's), or 0 if unknown. 3. (optional) the full image's height, or 0 if unknown. 4. (optional) the [ enum@ImageType] of the full image. 5. (optional) the number of layers in the full image.

Parameters:

procedure

the Procedure that runs.

file

the File to load the thumbnail from.

size

the requested thumbnail size.

config

the procedure's remaining arguments.

run_data

the run_data given in ThumbnailProcedure.

Returns:

the procedure's return values.


Namespace: Gimp
Package: gimp-3.0