set_resolution


Description:

[ CCode ( cname = "gimp_size_entry_set_resolution" ) ]
public void set_resolution (int field, double resolution, bool keep_size)

Sets the resolution (in dpi) for field # field of the SizeEntry.

The resolution passed will be clamped to fit in [ MIN_RESOLUTION..MAX_RESOLUTION].

This function does nothing if the SizeEntryUpdatePolicy specified in SizeEntry doesn't equal to SIZE.

Parameters:

this

The sizeentry you want to set a resolution for.

field

The index of the field you want to set the resolution for.

resolution

The new resolution (in dpi) for the chosen field.

keep_size

true if the field's size in pixels should stay the same. false if the field's size in units should stay the same.