scale_pixbuf#

ignis.utils.Utils.scale_pixbuf(pixbuf: gi.repository.GdkPixbuf.Pixbuf, width: int, height: int) gi.repository.GdkPixbuf.Pixbuf | None#

Scale a GdkPixbuf.Pixbuf to the given width and height.

Parameters:
  • pixbuf (Pixbuf) -- The source GdkPixbuf.Pixbuf.

  • width (int) -- The target width.

  • height (int) -- The target height.

Return type:

Pixbuf | None

Returns:

The scaled GdkPixbuf.Pixbuf or None.