Re: Look for Examples
Bob Friesenhahn <[email protected]> Sun, 18 Nov 2012 12:38:24 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 18 Nov 2012, Manfred Rebentisch wrote: > Hello, > I just start to evaluate GraphicsMagick for my software projects. > Until now I used own tools written around the gd-library. > > Now I looking for programming examples for the gm core C API, but I > found nothing. I'm happy, if you can help and give me an URL for > examples or projects, that make use of GraphicsMagick. There is a very large body of programming examples for the gm core C API because gm itself uses the core C API for its implementation. I suggest obtaining the source tarball and using its source code as a reference. Some of the API is a bit clumsy due to its 20 year old history. The source code for the test programs tests/rwblob.c and tests/rwfile.c should help with understanding use of the ImageInfo and Image structures. There is also some example code on the GraphicsMagick Core C API web page at http://www.graphicsmagick.org/api/api.html which demonstrates a rather complex usage. There is also a Wand API which is a simplified wrapper based on the gm core C CPI. The Wand API seems to be popular due to being simplified and because there is an equivalent API in ImageMagick. The TclMagick implementation uses the Wand API. Feel free to ask questions regarding any issues you may encounter. Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov