All functions   Mac OS X   Windows   Crossplatform   Components   New in version: 1.0   1.1   1.2   1.3   1.4   1.5   1.6   1.7   1.8   2.0  

GMImage.Modulate

Component: GraphicsMagick
Mac OS X: Works
Windows: Works

MBS( "GMImage.Modulate"; ImageRef; brightness; saturation; hue )

Parameters

Parameter Description Example value
ImageRef The image reference (a number returned from the GMImage.New functions) 1
brightness The brightness value. 1.0
saturation The saturation value. 0.0
hue The hue value. 1.0

Result

Returns "OK" on success.

Description

Modulate percent hue, saturation, and brightness of an image. Modulation of saturation and brightness is as a ratio of the current value (1.0 for no change). Modulation of hue is an absolute rotation of -180 degrees to +180 degrees from the current position corresponding to an argument range of 0 to 2.0 (1.0 for no change).

Feedback: Report problem or ask question.