The Machine Perception Toolbox

[Introduction]- [News]- [Download]- [Screenshots]- [Manual (pdf)]- [Forums]- [API Reference]- [Repository ]

 

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Apps/unix/Hello/hello.cpp File Reference

#include <Magick++.h>

Include dependency graph for Apps/unix/Hello/hello.cpp:

Include dependency graph

Go to the source code of this file.

Functions

int main ()
 Example Code to Print Hello on an image.


Function Documentation

int main  ) 
 

Example Code to Print Hello on an image.

Used to Check whether Image Magick is working.

Definition at line 19 of file Apps/unix/Hello/hello.cpp.

References img.

00020 {
00021   Image img("../../Media/ExampleImage.jpg");
00022   
00023   img.fontPointsize(100);
00024   // Geometry(width, height, xoffset, yoffset)    
00025   img.annotate("Hello", Geometry(400,400, 20, 220) );
00026   img.write("Output1.pdf");
00027   
00028   img.display();
00029 
00030   return 0;
00031 }


Generated on Mon Nov 8 17:08:01 2004 for MPT by  doxygen 1.3.9.1