You are here

function coloractions_colormultiply_effect in ImageCache Actions 7

Image effect callback for the color multiply effect.

Parameters

stdClass $image:

array $data:

Return value

bool true on success, false otherwise.

1 string reference to 'coloractions_colormultiply_effect'
imagecache_coloractions_image_effect_info in coloractions/imagecache_coloractions.module
Implements hook_image_effect_info().

File

coloractions/imagecache_coloractions.module, line 492

Code

function coloractions_colormultiply_effect(stdClass $image, array $data) {

  // Convert color from hex (as it is stored in the UI).
  if ($data['RGB']['HEX'] && ($deduced = imagecache_actions_hex2rgba($data['RGB']['HEX']))) {
    $data['RGB'] = array_merge($data['RGB'], $deduced);
  }
  return image_toolkit_invoke('colormultiply', $image, array(
    $data,
  ));
}