function imagick_modulate_form in Imagick 7
Settings form for the imagick modulate effect.
Parameters
$action: The saved action form parameters.
1 string reference to 'imagick_modulate_form'
- imagick_image_effect_info in ./
imagick.module - Implements hook_image_effect_info()
File
- effects/
imagick.modulate.inc, line 35
Code
function imagick_modulate_form($data) {
$data = array_merge(imagick_modulate_defaults(), (array) $data);
$form['brightness'] = array(
'#type' => 'textfield',
'#title' => t('Brightness in percentage'),
'#default_value' => $data['brightness'],
'#size' => 3,
);
$form['saturation'] = array(
'#type' => 'textfield',
'#title' => t('Saturation in percentage'),
'#default_value' => $data['saturation'],
'#size' => 3,
);
$form['hue'] = array(
'#type' => 'textfield',
'#title' => t('Hue in percentage'),
'#default_value' => $data['hue'],
'#size' => 3,
);
return $form;
}