| Gnome User Interface Library Reference Manual | |||
|---|---|---|---|
| <<< Previous Page | Home | Up | Next Page >>> |
#include <gnome.h> struct GnomePixmap; |
|
| filename : | The name of a file containing a graphics image |
| Returns : | a widget that contains the image, or NULL if it fails to load the image. |
|
| filename : | The name of a file containing a graphics image |
| width : | desired widht |
| height : | desired height. |
| Returns : | a widget that contains the image scaled to widht and height pixels, or NULL if it fails to load the image. |
|
| xpm_data : | A pointer to an inlined xpm image. |
| Returns : | a widget that contains the image, or NULL if it fails to create the image |
|
| xpm_data : | A pointer to an inlined xpm image. |
| width : | desired widht |
| height : | desired height. |
| Returns : | a widget that contains the image scaled to widht and height pixels, or NULL if it fails to load the image. |
|
| data : | A pointer to an inlined rgb image. |
| alpha : | |
| rgb_width : | |
| rgb_height : | |
| Returns : | a widget that contains the image, or NULL if it fails to create the image |
|
| data : | A pointer to an inlined rgb image |
| alpha : | pointer to the alpha channel. |
| rgb_width : | width of the rgb data |
| rgb_height : | height of the rgb data. |
| shape_color : | which color encodes the transparency |
| Returns : | a widget that contains the image, or NULL if it fails to load the image. |
|
| data : | A pointer to an inlined rgb image |
| alpha : | pointer to the alpha channel. |
| rgb_width : | width of the rgb data |
| rgb_height : | height of the rgb data. |
| width : | desired width. |
| height : | desired height. |
| shape_color : | which color encodes the transparency |
| Returns : | a widget that contains the image scaled to width and height pixels, or NULL if it fails to load the image. |
|
| data : | A pointer to an inlined rgb image. |
| alpha : | |
| rgb_width : | the width of the rgb image. |
| rgb_height : | the height of the rgb image. |
| width : | desired width. |
| height : | desired height. |
| Returns : | a widget that contains the image scaled to width and height pixels, or NULL if it fails to load the image. |
|
| gpixmap : | |
| Returns : | a widget that contains a copy of gpixmap_old |
|
| im : | A pointer to GdkImlibImage data |
| Returns : | a widget that contains the image, or NULL if it fails to create the image. Note that im will not be rendered after this call. |
|
| im : | A pointer to GdkImlibImage data |
| width : | desired width. |
| height : | desired height. |
| Returns : | a widget that contains the image scaled to width and height pixels, or NULL if it fails to create the image. Note that im will not be rendered after this call. |
void gnome_pixmap_load_file (GnomePixmap *gpixmap, const char *filename); |
Sets the gnome pixmap to image stored in filename scaled to width and height pixels.
| gpixmap : | |
| filename : | a new filename |
void gnome_pixmap_load_file_at_size (GnomePixmap *gpixmap, const char *filename, int width, int height); |
| gpixmap : | |
| filename : | |
| width : | |
| height : |
void gnome_pixmap_load_xpm_d (GnomePixmap *gpixmap, char **xpm_data); |
Sets the gnome pixmap to image stored in xpm_data.
| gpixmap : | |
| xpm_data : | xpm image data |
void gnome_pixmap_load_xpm_d_at_size (GnomePixmap *gpixmap, char **xpm_data, int width, int height); |
Sets the gnome pixmap to image stored in xpm_data scaled to width and height pixels.
| gpixmap : | |
| xpm_data : | xpm image data |
| width : | desired width. |
| height : | desired height. |
void gnome_pixmap_load_rgb_d (GnomePixmap *gpixmap, unsigned char *data, unsigned char *alpha, int rgb_width, int rgb_height); |
Sets the gnome pixmap to the image.
| gpixmap : | |
| data : | A pointer to an inlined rgb image. |
| alpha : | |
| rgb_width : | the width of the rgb image. |
| rgb_height : | the height of the rgb image. |
void gnome_pixmap_load_rgb_d_shaped (GnomePixmap *gpixmap, unsigned char *data, unsigned char *alpha, int rgb_width, int rgb_height, |
Sets the gnome pixmap to the image.
| gpixmap : | |
| data : | A pointer to an inlined rgb image. |
| alpha : | |
| rgb_width : | the width of the rgb image. |
| rgb_height : | the height of the rgb image. |
| shape_color : | which color encodes the transparency |
void gnome_pixmap_load_rgb_d_shaped_at_size
(GnomePixmap *gpixmap,
unsigned char *data,
unsigned char *alpha,
int rgb_width,
int rgb_height,
int width,
int height,
|
Sets the gnome pixmap to the image scaled to width and height pixels.
| gpixmap : | |
| data : | A pointer to an inlined rgb image. |
| alpha : | |
| rgb_width : | the width of the rgb image. |
| rgb_height : | the height of the rgb image. |
| width : | desired width. |
| height : | desired height. |
| shape_color : | which color encodes the transparency |
void gnome_pixmap_load_rgb_d_at_size (GnomePixmap *gpixmap, unsigned char *data, unsigned char *alpha, int rgb_width, int rgb_height, int width, int height); |
Sets the gnome pixmap to the image scaled to width and height pixels.
| gpixmap : | |
| data : | A pointer to an inlined rgb image. |
| alpha : | |
| rgb_width : | the width of the rgb image. |
| rgb_height : | the height of the rgb image. |
| width : | desired width. |
| height : | desired height. |
void gnome_pixmap_load_imlib (GnomePixmap *gpixmap, |
Sets the gnome pixmap to image stored in im. Note that im will not be rendered after this call.
| gpixmap : | |
| im : | A pointer to GdkImlibImage data |
void gnome_pixmap_load_imlib_at_size (GnomePixmap *gpixmap, |
Sets the gnome pixmap to image stored in im scaled to width and height pixels. Note that im will not be rendered after this call.
| gpixmap : | |
| im : | A pointer to GdkImlibImage data |
| width : | desired width. |
| height : | desired height. |