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