You are here

function canvasactions_source2canvas_image in ImageCache Actions 6

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

Place the source image on the current background

Implementation of hook_image()

Parameters

$image :

$action :

File

./canvasactions.inc, line 598
Helper functions for the text2canvas action for imagecache

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']);
}