You are here

function canvasactions_source2canvas_image in ImageCache Actions 5.3

Same name and namespace in other branches
  1. 5.2 canvasactions.inc \canvasactions_source2canvas_image()
  2. 6.2 canvasactions/canvasactions.inc \canvasactions_source2canvas_image()
  3. 6 canvasactions.inc \canvasactions_source2canvas_image()

Place the source image on the current background

Implementation of hook_image()

Parameters

$image:

$action:

File

./canvasactions.inc, line 405

Code

function canvasactions_source2canvas_image(&$image, $action = array()) {
  $overlay = imageapi_image_open($image->source);

  // this probably means opening the image twice. c'est la vie
  return imageapi_image_overlay($image, $overlay, $action['xpos'], $action['ypos'], $action['alpha']);
}