| Top | Description | Object Hierarchy |
#include <grilo.h> struct GrlMediaImage; struct GrlMediaImageClass; GrlMedia * grl_media_image_new (void); void grl_media_image_add_url_data (GrlMediaImage *image,const gchar *url,const gchar *mime,gint width,gint height); const gchar * grl_media_image_get_camera_model (GrlMediaImage *image); gfloat grl_media_image_get_exposure_time (GrlMediaImage *image); const gchar * grl_media_image_get_flash_used (GrlMediaImage *image); gint grl_media_image_get_height (GrlMediaImage *image); gfloat grl_media_image_get_iso_speed (GrlMediaImage *image); gint grl_media_image_get_orientation (GrlMediaImage *image); const gchar * grl_media_image_get_url_data (GrlMediaImage *image,gchar **mime,gint *width,gint *height); const gchar * grl_media_image_get_url_data_nth (GrlMediaImage *image,guint index,gchar **mime,gint *width,gint *height); gint grl_media_image_get_width (GrlMediaImage *image); void grl_media_image_set_camera_model (GrlMediaImage *image,const gchar *camera_model); void grl_media_image_set_exposure_time (GrlMediaImage *image,gfloat exposure_time); void grl_media_image_set_flash_used (GrlMediaImage *image,const gchar *flash_used); void grl_media_image_set_height (GrlMediaImage *image,gint height); void grl_media_image_set_iso_speed (GrlMediaImage *image,gfloat iso_speed); void grl_media_image_set_orientation (GrlMediaImage *image,gint orientation); void grl_media_image_set_size (GrlMediaImage *image,gint width,gint height); void grl_media_image_set_url_data (GrlMediaImage *image,const gchar *url,const gchar *mime,gint width,gint height); void grl_media_image_set_width (GrlMediaImage *image,gint width);
This high level class represents an image multimedia item. It has methods to set and get the size, width and height properties
struct GrlMediaImageClass {
GrlMediaClass parent_class;
};
Grilo Media image Class
GrlMediaClass |
the parent class structure |
GrlMedia * grl_media_image_new (void);
Creates a new data image object.
Returns : |
a newly-allocated data image. |
Since 0.1.4
void grl_media_image_add_url_data (GrlMediaImage *image,const gchar *url,const gchar *mime,gint width,gint height);
Sets all the keys related with the URL of a media resource and adds it to
image
(useful for resources with more than one URL).
|
the image instance |
|
a image's url |
|
image mime-type |
|
image width, or -1 to ignore |
|
image height, or -1 to ignore |
Since 0.1.10
const gchar * grl_media_image_get_camera_model (GrlMediaImage *image);
|
the image instance |
Returns : |
model of camera used to take picture |
Since 0.1.12
gfloat grl_media_image_get_exposure_time (GrlMediaImage *image);
|
the image instance |
Returns : |
picture's exposure time |
Since 0.1.12
const gchar * grl_media_image_get_flash_used (GrlMediaImage *image);
|
the image instance |
Returns : |
whether the flash was used See http://library.gnome.org/devel/ontology/unstable/nmm-classes.htmlnmm-Flash |
Since 0.1.12
gint grl_media_image_get_height (GrlMediaImage *image);
|
the image instance |
Returns : |
the height of the image |
Since 0.1.4
gfloat grl_media_image_get_iso_speed (GrlMediaImage *image);
|
the image instance |
Returns : |
picture's iso speed |
Since 0.1.12
gint grl_media_image_get_orientation (GrlMediaImage *image);
|
the image instance |
Returns : |
degrees clockwise orientation of the picture |
Since 0.1.12
const gchar * grl_media_image_get_url_data (GrlMediaImage *image,gchar **mime,gint *width,gint *height);
|
the image instance |
|
the url mime-type, or |
|
the width, or |
|
the height, or |
Returns : |
all the keys related with the URL of an image resource in one go. |
Since 0.1.10
const gchar * grl_media_image_get_url_data_nth (GrlMediaImage *image,guint index,gchar **mime,gint *width,gint *height);
|
the image instance |
|
element to retrieve |
|
the url mime-type, or |
|
the width, or |
|
the height, or |
Returns : |
all the keys related with the URL number |
Since 0.1.10
gint grl_media_image_get_width (GrlMediaImage *image);
|
The image instance |
Returns : |
the width of the image |
Since 0.1.4
void grl_media_image_set_camera_model (GrlMediaImage *image,const gchar *camera_model);
void grl_media_image_set_exposure_time (GrlMediaImage *image,gfloat exposure_time);
void grl_media_image_set_flash_used (GrlMediaImage *image,const gchar *flash_used);
void grl_media_image_set_height (GrlMediaImage *image,gint height);
Set the height of the image
|
the image instance |
|
the image's height |
Since 0.1.4
void grl_media_image_set_iso_speed (GrlMediaImage *image,gfloat iso_speed);
Set the iso_speed of the image
|
the image instance |
|
picture's iso speed |
Since 0.1.12
void grl_media_image_set_orientation (GrlMediaImage *image,gint orientation);
Set the orientation of the image
|
the image instance |
|
degrees clockwise orientation of the picture |
Since 0.1.12
void grl_media_image_set_size (GrlMediaImage *image,gint width,gint height);
Set the size of the image
|
the image instance |
|
the image's width |
|
the image's height |
Since 0.1.4
void grl_media_image_set_url_data (GrlMediaImage *image,const gchar *url,const gchar *mime,gint width,gint height);
Sets all the keys related with the URL of an image resource in one go.
|
the media instance |
|
the image's url |
|
image mime-type |
|
image width, or -1 to ignore |
|
image height, or -1 to ignore |
Since 0.1.10
void grl_media_image_set_width (GrlMediaImage *image,gint width);
Set the width of the image
|
the image instance |
|
the image's width |
Since 0.1.4