file-open

file-open

Synopsis

GimpImage *         file_open_image                     (Gimp *gimp,
                                                         GimpContext *context,
                                                         GimpProgress *progress,
                                                         const gchar *uri,
                                                         const gchar *entered_filename,
                                                         gboolean as_new,
                                                         GimpPlugInProcedure *file_proc,
                                                         GimpRunMode run_mode,
                                                         GimpPDBStatusType *status,
                                                         const gchar **mime_type,
                                                         GError **error);
GimpImage *         file_open_with_display              (Gimp *gimp,
                                                         GimpContext *context,
                                                         GimpProgress *progress,
                                                         const gchar *uri,
                                                         gboolean as_new,
                                                         GimpPDBStatusType *status,
                                                         GError **error);
GimpImage *         file_open_with_proc_and_display     (Gimp *gimp,
                                                         GimpContext *context,
                                                         GimpProgress *progress,
                                                         const gchar *uri,
                                                         const gchar *entered_filename,
                                                         gboolean as_new,
                                                         GimpPlugInProcedure *file_proc,
                                                         GimpPDBStatusType *status,
                                                         GError **error);
GList *             file_open_layers                    (Gimp *gimp,
                                                         GimpContext *context,
                                                         GimpProgress *progress,
                                                         GimpImage *dest_image,
                                                         gboolean merge_visible,
                                                         const gchar *uri,
                                                         GimpRunMode run_mode,
                                                         GimpPlugInProcedure *file_proc,
                                                         GimpPDBStatusType *status,
                                                         GError **error);
GimpImage *         file_open_thumbnail                 (Gimp *gimp,
                                                         GimpContext *context,
                                                         GimpProgress *progress,
                                                         const gchar *uri,
                                                         gint size,
                                                         const gchar **mime_type,
                                                         gint *image_width,
                                                         gint *image_height,
                                                         GimpImageType *type,
                                                         gint *num_layers,
                                                         GError **error);
gboolean            file_open_from_command_line         (Gimp *gimp,
                                                         const gchar *filename,
                                                         gboolean as_new);

Description

Details

file_open_image ()

GimpImage *         file_open_image                     (Gimp *gimp,
                                                         GimpContext *context,
                                                         GimpProgress *progress,
                                                         const gchar *uri,
                                                         const gchar *entered_filename,
                                                         gboolean as_new,
                                                         GimpPlugInProcedure *file_proc,
                                                         GimpRunMode run_mode,
                                                         GimpPDBStatusType *status,
                                                         const gchar **mime_type,
                                                         GError **error);


file_open_with_display ()

GimpImage *         file_open_with_display              (Gimp *gimp,
                                                         GimpContext *context,
                                                         GimpProgress *progress,
                                                         const gchar *uri,
                                                         gboolean as_new,
                                                         GimpPDBStatusType *status,
                                                         GError **error);


file_open_with_proc_and_display ()

GimpImage *         file_open_with_proc_and_display     (Gimp *gimp,
                                                         GimpContext *context,
                                                         GimpProgress *progress,
                                                         const gchar *uri,
                                                         const gchar *entered_filename,
                                                         gboolean as_new,
                                                         GimpPlugInProcedure *file_proc,
                                                         GimpPDBStatusType *status,
                                                         GError **error);


file_open_layers ()

GList *             file_open_layers                    (Gimp *gimp,
                                                         GimpContext *context,
                                                         GimpProgress *progress,
                                                         GimpImage *dest_image,
                                                         gboolean merge_visible,
                                                         const gchar *uri,
                                                         GimpRunMode run_mode,
                                                         GimpPlugInProcedure *file_proc,
                                                         GimpPDBStatusType *status,
                                                         GError **error);


file_open_thumbnail ()

GimpImage *         file_open_thumbnail                 (Gimp *gimp,
                                                         GimpContext *context,
                                                         GimpProgress *progress,
                                                         const gchar *uri,
                                                         gint size,
                                                         const gchar **mime_type,
                                                         gint *image_width,
                                                         gint *image_height,
                                                         GimpImageType *type,
                                                         gint *num_layers,
                                                         GError **error);

Attempts to load a thumbnail by using a registered thumbnail loader.

uri :

the URI of the image file

size :

requested size of the thumbnail

mime_type :

return location for image MIME type

image_width :

return location for image width

image_height :

return location for image height

type :

return location for image type (set to -1 if unknown)

num_layers :

return location for number of layers (set to -1 if the number of layers is not known)

Returns :

the thumbnail image

file_open_from_command_line ()

gboolean            file_open_from_command_line         (Gimp *gimp,
                                                         const gchar *filename,
                                                         gboolean as_new);