function imagick_vignette_form in Imagick 7
Settings form for the imagick vignette effect.
Parameters
$action: The saved action form parameters.
1 string reference to 'imagick_vignette_form'
- imagick_image_effect_info in ./
imagick.module - Implements hook_image_effect_info()
File
- effects/
imagick.vignette.inc, line 41
Code
function imagick_vignette_form($data) {
$data = array_merge(imagick_vignette_defaults(), (array) $data);
$form['blackpoint'] = array(
'#type' => 'textfield',
'#title' => t('Blackpoint'),
'#description' => t('The blackpoint of the vignette'),
'#default_value' => $data['blackpoint'],
'#size' => 3,
);
$form['whitepoint'] = array(
'#type' => 'textfield',
'#title' => t('Whitepoint'),
'#description' => t('The whitepoint of the vignette'),
'#default_value' => $data['whitepoint'],
'#size' => 3,
);
$form['x'] = array(
'#type' => 'textfield',
'#title' => t('X'),
'#description' => t('The X value of the vignette'),
'#default_value' => $data['x'],
'#size' => 3,
);
$form['y'] = array(
'#type' => 'textfield',
'#title' => t('Y'),
'#description' => t('The Y value of the vignette'),
'#default_value' => $data['y'],
'#size' => 3,
);
return $form;
}