Top | ![]() |
![]() |
![]() |
![]() |
GimpImage * gimp_file_load (GimpRunMode run_mode
,GFile *file
);
Loads an image file by invoking the right load handler.
This procedure invokes the correct file load handler using magic if possible, and falling back on the file's extension and/or prefix if not.
GimpLayer * gimp_file_load_layer (GimpRunMode run_mode
,GimpImage *image
,GFile *file
);
Loads an image file as a layer for an existing image.
This procedure behaves like the file-load procedure but opens the
specified image as a layer for an existing image. The returned layer
needs to be added to the existing image with
gimp_image_insert_layer()
.
Since: 2.4
GimpLayer ** gimp_file_load_layers (GimpRunMode run_mode
,GimpImage *image
,GFile *file
,gint *num_layers
);
Loads an image file as layers for an existing image.
This procedure behaves like the file-load procedure but opens the
specified image as layers for an existing image. The returned layers
needs to be added to the existing image with
gimp_image_insert_layer()
.
run_mode |
The run mode. |
|
image |
Destination image. |
|
file |
The file to load. |
|
num_layers |
The number of loaded layers. |
[out] |
The list of loaded layers.
The returned value must be freed with g_free()
.
[array length=num_layers][element-type GimpLayer][transfer container]
Since: 2.4
gboolean gimp_file_save (GimpRunMode run_mode
,GimpImage *image
,gint num_drawables
,const GimpItem **drawables
,GFile *file
);
Saves a file by extension.
This procedure invokes the correct file save handler according to the file's extension and/or prefix.
gboolean gimp_file_save_thumbnail (GimpImage *image
,GFile *file
);
Saves a thumbnail for the given image
This procedure saves a thumbnail for the given image according to the Free Desktop Thumbnail Managing Standard. The thumbnail is saved so that it belongs to the given file. This means you have to save the image under this name first, otherwise this procedure will fail. This procedure may become useful if you want to explicitly save a thumbnail with a file.