GrlMediaImage

GrlMediaImage — A multimedia data for image

Synopsis

#include <grilo.h>

struct              GrlMediaImageClass;
void                grl_media_image_set_width           (GrlMediaImage *image,
                                                         gint width);
void                grl_media_image_set_height          (GrlMediaImage *image,
                                                         gint height);
gint                grl_media_image_get_width           (GrlMediaImage *image);
gint                grl_media_image_get_height          (GrlMediaImage *image);
GrlMedia *          grl_media_image_new                 (void);
void                grl_media_image_set_size            (GrlMediaImage *image,
                                                         gint width,
                                                         gint height);

Description

This high level class represents an image multimedia item. It has methods to set and get the size, width and height properties

Details

struct GrlMediaImageClass

struct GrlMediaImageClass {
  GrlMediaClass parent_class;
};

Grilo Media image Class

GrlMediaClass parent_class;

the parent class structure

grl_media_image_set_width ()

void                grl_media_image_set_width           (GrlMediaImage *image,
                                                         gint width);

Set the width of the image

image :

the image instance

width :

the image's width

Since 0.1.4


grl_media_image_set_height ()

void                grl_media_image_set_height          (GrlMediaImage *image,
                                                         gint height);

Set the height of the image

image :

the image instance

height :

the image's height

Since 0.1.4


grl_media_image_get_width ()

gint                grl_media_image_get_width           (GrlMediaImage *image);

image :

The image instance

Returns :

the width of the image

Since 0.1.4


grl_media_image_get_height ()

gint                grl_media_image_get_height          (GrlMediaImage *image);

image :

the image instance

Returns :

the height of the image

Since 0.1.4


grl_media_image_new ()

GrlMedia *          grl_media_image_new                 (void);

Creates a new data image object.

Returns :

a newly-allocated data image.

Since 0.1.4


grl_media_image_set_size ()

void                grl_media_image_set_size            (GrlMediaImage *image,
                                                         gint width,
                                                         gint height);

Set the size of the image

image :

the image instance

width :

the image's width

height :

the image's height

Since 0.1.4

See Also

GrlConfig, GrlMediaBox, GrlMediaAudio, GrlMediaVideo