function imagick_noise_form in Imagick 7
Settings form for the imagick noise effect.
Parameters
$action: The saved action form parameters.
1 string reference to 'imagick_noise_form'
- imagick_image_effect_info in ./
imagick.module - Implements hook_image_effect_info()
File
- effects/
imagick.noise.inc, line 35
Code
function imagick_noise_form($data) {
$data = array_merge(imagick_noise_defaults(), (array) $data);
$form['type'] = array(
'#type' => 'select',
'#title' => t('Noise type'),
'#options' => array(
imagick::NOISE_UNIFORM => t('Uniform'),
imagick::NOISE_GAUSSIAN => t('Gaussian'),
imagick::NOISE_MULTIPLICATIVEGAUSSIAN => t('Multiplicative gaussian'),
imagick::NOISE_IMPULSE => t('Impulse'),
imagick::NOISE_LAPLACIAN => t('Laplacian'),
imagick::NOISE_POISSON => t('Poisson'),
imagick::NOISE_RANDOM => t('Random'),
),
'#default_value' => $data['type'],
);
return $form;
}