You are here

function imagick_charcoal_form in Imagick 7

Settings form for the imagick charcoal effect.

Parameters

$action: The saved action form parameters.

1 string reference to 'imagick_charcoal_form'
imagick_image_effect_info in ./imagick.module
Implements hook_image_effect_info()

File

effects/imagick.charcoal.inc, line 37

Code

function imagick_charcoal_form($data) {
  $data = array_merge(imagick_charcoal_defaults(), (array) $data);
  $form['radius'] = array(
    '#type' => 'textfield',
    '#title' => t('Radius'),
    '#description' => t('The radius of the charcoal effect.'),
    '#default_value' => $data['radius'],
    '#size' => 3,
  );
  $form['sigma'] = array(
    '#type' => 'textfield',
    '#title' => t('Sigma'),
    '#description' => t('The sigma of the charcoal effect.'),
    '#default_value' => $data['sigma'],
    '#size' => 3,
  );
  return $form;
}