You are here

function imageapi_image_overlay in ImageCache Actions 5.3

Same name and namespace in other branches
  1. 5.2 imagecache_canvasactions.module \imageapi_image_overlay()
  2. 6 imagecache_canvasactions.module \imageapi_image_overlay()

Place one image over another

Parameters

$overlay may be a filename or an imageAPI object:

Return value

bool success

3 calls to imageapi_image_overlay()
canvasactions_canvas2file_image in ./canvasactions.inc
Place the source image on the current background
canvasactions_file2canvas_image in ./canvasactions.inc
Place the source image on the current background
canvasactions_source2canvas_image in ./canvasactions.inc
Place the source image on the current background

File

./imagecache_canvasactions.module, line 103
A collection of canvas (layer) type manipulations for imagecache - including "Watermark"

Code

function imageapi_image_overlay(&$image, $overlay, $x, $y, $alpha) {
  return call_user_func_array($image->toolkit . '_image_overlay', array(
    &$image,
    $overlay,
    $x,
    $y,
    $alpha,
  ));
}