WideImage 1.0 branch (discontinued)

WideImage Wiki : opMerge

MainPage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Support This Project SourceForge.net Logo
Important notice: the development of WideImage 1.0 branch is discontinued. Please visit http://wideimage.sourceforge.net for the new version of library and documentation.
This web site will remain accessible to serve as documentation for the old versions of the library. For help on migration, please refer to the migration guide.

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.0746 seconds