crop_pixbuf#
- ignis.utils.Utils.crop_pixbuf(pixbuf: gi.repository.GdkPixbuf.Pixbuf, width: int, height: int) gi.repository.GdkPixbuf.Pixbuf #
Crop the
GdkPixbuf.Pixbuf
to the given width and height.- Parameters:
pixbuf (
GdkPixbuf.Pixbuf
) -- The source pixbuf.width (
int
) -- The width to crop to.height (
int
) -- The height to crop to.
- Returns:
The cropped pixbuf.
- Return type:
GdkPixbuf.Pixbuf