Package traylib :: Module pixbuf_helper
[frames] | no frames]

Module pixbuf_helper

source code

Functions
 
scale_pixbuf_to_size(pixbuf, size, scale_up=True)
Returns a pixbuf scaled to the given size.
source code
Function Details

scale_pixbuf_to_size(pixbuf, size, scale_up=True)

source code 

Returns a pixbuf scaled to the given size.

Parameters:
  • size - The size of the scaled pixbuf.
  • scale_up - If False, it is only scaled down if too large and not scaled up.
Returns:
A pixbuf scaled to the given size.