Magick++  6.9.3
Functions.h
Go to the documentation of this file.
1 // This may look like C code, but it is really -*- C++ -*-
2 //
3 // Copyright Bob Friesenhahn, 1999, 2000, 2001, 2003
4 // Copyright Dirk Lemstra 2014
5 //
6 // Simple C++ function wrappers for often used or otherwise
7 // inconvenient ImageMagick equivalents
8 //
9 
10 #if !defined(Magick_Functions_header)
11 #define Magick_Functions_header
12 
13 #include "Magick++/Include.h"
14 #include <string>
15 
16 namespace Magick
17 {
18  // Clone C++ string as allocated C string, de-allocating any existing string
19  MagickPPExport void CloneString(char **destination_,
20  const std::string &source_);
21 
22  // Disable OpenCL acceleration (only works when build with OpenCL support)
23  MagickPPExport void DisableOpenCL(void);
24 
25  // Enable OpenCL acceleration (only works when build with OpenCL support)
26  MagickPPExport bool EnableOpenCL(const bool useCache_=true);
27 
28  // C library initialization routine
29  MagickPPExport void InitializeMagick(const char *path_);
30 
31  // Seed a new sequence of pseudo-random numbers
32  MagickPPExport void SetRandomSeed(const unsigned long seed);
33 
34  // C library initialization routine
36 }
37 #endif // Magick_Functions_header
MagickPPExport bool EnableOpenCL(const bool useCache_=true)
Definition: Functions.cpp:36
MagickPPExport void DisableOpenCL(void)
Definition: Functions.cpp:28
MagickPPExport void SetRandomSeed(const unsigned long seed)
Definition: Functions.cpp:61
#define MagickPPExport
Definition: Include.h:261
MagickPPExport void CloneString(char **destination_, const std::string &source_)
Definition: Functions.cpp:22
MagickPPExport void InitializeMagick(const char *path_)
Definition: Functions.cpp:54
MagickPPExport void TerminateMagick()
Definition: Functions.cpp:66