WideImage logo

WideImage Wiki : opMerge

MainPage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
SourceForge.net Logo

wiImage::merge()

See: List of operations

Signature

wiImage::merge($overlay, $x = 0, $y = 0, $pct = 100)

Parameters



Description

This will merge (blend) the overlay image onto the base image at location ($x, $y) with $pct opacity using imagecopymerge().

Notes


Examples

$picture = wiImage::load('/path/to/another/image.png');
$overlay = wiImage::load('/path/to/watermark.png');
$result = $picture->merge($overlay, 10, 10, 50);

// or with an image that has alpha channel
$alpha_overlay = wiImage::load('/path/to/alpha/overlay.png');
$picture->merge($alpha_overlay, 10, 10)->saveToFile(...);

// with percent string
$new = $picture->merge($overlay, '50%', '25%', 40);



CategoryDocApi

There are no comments on this page. [Add comment]

WideImage - an Object-Oriented PHP Image Library for Image manipulation
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.2
Page was generated in 0.8272 seconds