function canvasactions_source2canvas_image in ImageCache Actions 6.2
Same name and namespace in other branches
- 5.3 canvasactions.inc \canvasactions_source2canvas_image()
- 5.2 canvasactions.inc \canvasactions_source2canvas_image()
- 6 canvasactions.inc \canvasactions_source2canvas_image()
Place the source image on the current background
Implementation of hook_image()
Parameters
$image :
$action :
File
- canvasactions/
canvasactions.inc, line 694
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']);
}