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 (Pixbuf) -- The source pixbuf.

  • width (int) -- The width to crop to.

  • height (int) -- The height to crop to.

Return type:

Pixbuf

Returns:

The cropped pixbuf.