Icon image

## Icon image Icon image — An icon image creator. |

## Synopsis

    GdkPixbuf *         fm_pixbuf_from_icon                 (FmIcon *icon,
                                                             int size);
    GdkPixbuf *         fm_pixbuf_from_icon_with_fallback   (FmIcon *icon,
                                                             int size,
                                                             const char *fallback);

## Description

`include`: libfm/fm-gtk.h

## Details

### fm_pixbuf_from_icon ()

    GdkPixbuf *         fm_pixbuf_from_icon                 (FmIcon *icon,
                                                             int size);

Creates a GdkPixbuf and draws icon there.

Before 1.0.0 this call had name fm_icon_get_pixbuf.

`icon` : | icon descriptor
`size` : | size in pixels
Returns : | an image. [transfer full]

Since 0.1.0

### fm_pixbuf_from_icon_with_fallback ()

    GdkPixbuf *         fm_pixbuf_from_icon_with_fallback   (FmIcon *icon,
                                                             int size,
                                                             const char *fallback);

Creates a GdkPixbuf and draws icon there. If icon cannot be found then icon with name `fallback` will be loaded instead.

`icon` : | icon descriptor
`size` : | size in pixels
`fallback` : | name of fallback icon. [allow-none]
Returns : | an image. [transfer full]

Since 1.2.0