next up previous contents
Next: 2. The VIPS file Up: 1. Introduction Previous: 1. Introduction   Contents

1.1 If you've used the C API

To show how much easier the VIPS C++ API is to use, consider the program shown in figure 1.1 (this is the second example from the VIPS Application Programmers' Guide). Figure 1.2 shows the same program, written with the C++ API.

A typical build line for the C++ program might be:

c++ invert.cc \
  `pkg-config vipsCC-7.10 --cflags --libs`

The key points are:

Figure 1.1: invert program in C
\begin{figure}\begin{quote}
\begin{verbatim}...

Figure 1.2: invert program in C++
\begin{figure}\begin{quote}
\begin{verbatim}...

next up previous contents
Next: 2. The VIPS file Up: 1. Introduction Previous: 1. Introduction   Contents
John Cupitt 2005-04-11