set_max_size


Description:

[ CCode ( cname = "gimp_preview_area_set_max_size" ) ]
[ Version ( since = "2.2" ) ]
public void set_max_size (int width, int height)

Usually a PreviewArea fills the size that it is allocated.

This function allows you to limit the preview area to a maximum size. If a larger size is allocated for the widget, the preview will draw itself centered into the allocated area.

Parameters:

this

a PreviewArea widget

width

the maximum width in pixels or -1 to unset the limit

height

the maximum height in pixels or -1 to unset the limit