| Top | Description |
void zoom_fit_size (guint dest_width,guint dest_height,guint src_width,guint src_height,gboolean upscale_smaller,guint *width,guint *height); double zoom_fit_scale (guint dest_width,guint dest_height,guint src_width,guint src_height,gboolean upscale_smaller);
void zoom_fit_size (guint dest_width,guint dest_height,guint src_width,guint src_height,gboolean upscale_smaller,guint *width,guint *height);
Computes the final dimensions of an image that is to be scaled to fit to a
certain size. If upscale_smaller is TRUE, then images smaller than the
destination size will be scaled up; otherwise, they will be left at their
original size.
|
Width of destination area. |
|
Height of destination area. |
|
Width of source image. |
|
Height of source image. |
|
Whether to scale up images smaller than the destination size. |
|
Return value for image width. |
|
Return value for image height. |
double zoom_fit_scale (guint dest_width,guint dest_height,guint src_width,guint src_height,gboolean upscale_smaller);
Similar to zoom_fit_size(), but returns the zoom factor of the final image
with respect to the original image's size.
|
Width of destination area. |
|
Height of destination area. |
|
Width of source image. |
|
Height of source image. |
|
Whether to scale up images smaller than the destination size. |
Returns : |
Zoom factor with respect to the original size. |