Method

Adw.Avatar.draw_to_pixbuf

Declaration [src]

GdkPixbuf*
adw_avatar_draw_to_pixbuf (
  AdwAvatar* self,
  int size,
  int 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.0

Parameters

size int
 

The size of the pixbuf

scale_factor int
 

The scale factor

Return value

Returns: GdkPixbuf*

the pixbuf

The caller of the function takes ownership of the data, and is responsible for freeing it