Creates a new export procedure named name which will call run_func when invoked.
See Procedure for information about proc_type.
ExportProcedure is a Procedure subclass that makes it easier to write file export procedures.
It automatically adds the standard
(RunMode, Image, File, ExportOptions)
arguments of an export procedure. It is possible to add additional arguments.
When invoked via run, it unpacks these standard arguments and calls
run_func which is a RunExportFunc. The
ProcedureConfig of
RunExportFunc only contains additionally added arguments.
If export_metadata is TRUE, then the class will also handle the metadata export if the format is supported by our backend.
This requires you to also set appropriate MimeType with set_mime_types
.
| plug_in |
a PlugIn. |
| name |
the new procedure's name. |
| proc_type |
the new procedure's PDBProcType. |
| export_metadata |
whether GIMP should handle metadata exporting. |
| run_func |
the run function for the new procedure. |
| run_data |
user data passed to |
| run_data_destroy |
free function for |
|
a new Procedure. |