Handy.Avatar.draw_to_pixbuf

### Method

# Handy Avatardraw_to_pixbuf

#### Declaration [src]

    GdkPixbuf*
    hdy_avatar_draw_to_pixbuf (
      HdyAvatar* self,
      gint size,
      gint scale_factor
    )

#### Description [src]

Renders `self` into a `GdkPixbuf` at `size` and `scale_factor`.

This can be used to export the fallback avatar.

Available since: | 1.2

#### Parameters

`size` | `gint`
| The size of the pixbuf.
`scale_factor` | `gint`
| The scale factor.

#### Return value

Returns: | `GdkPixbuf`
| The pixbuf.
| The caller of the method takes ownership of the data, and is responsible for freeing it.