Re: Merging two images

Bob Friesenhahn <[email protected]> Wed, 28 Oct 2009 10:02:01 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
On Wed, 28 Oct 2009, Felix Saphir wrote:
>
> I read the STL documentation, but decided to do it "the hard way",
> because I cannot be sure, that all images will have the same height.
>
> Your answer confirms the approach I took, and now it works :) Turns out,
> that I assumed the first parameter "const Image &compositeImage_"  to
> composite() was the destination image, not the source. Yes, I'm rather
> new to C/C++ ...

It is good that the API protects you from many simple errors like 
that.  The composition interface can be confusing.

Since you did things the "hard way", now you can experiment with 
adding other special effects wereas if you used one of the easy ways, 
you would not have so much liberty to experiment.

Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference