scale_pixbuf#
- ignis.utils.Utils.scale_pixbuf(pixbuf: gi.repository.GdkPixbuf.Pixbuf, width: int, height: int) GdkPixbuf.Pixbuf | None #
Scale a
GdkPixbuf.Pixbuf
to the given width and height.- Parameters:
pixbuf -- The source GdkPixbuf.Pixbuf.
width -- The target width.
height -- The target height.
- Returns:
The scaled GdkPixbuf.Pixbuf or
None
.