Magick++: Functions.h Source File

Magick++ 7.1.0

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 //
5 // Copyright @ 2014 ImageMagick Studio LLC, a non-profit organization
6 // dedicated to making software imaging solutions freely available.
7 //
8 // Simple C++ function wrappers for often used or otherwise
9 // inconvenient ImageMagick equivalents
10 //
11
12 #if !defined(Magick_Functions_header)
13 #define Magick_Functions_header
14
15 #include "Magick++/Include.h"
16 #include <string>
17
18 namespace Magick
19 {
20 // Clone C++ string as allocated C string, de-allocating any existing string
21 MagickPPExport void CloneString(char **destination_,
22 const std::string &source_);
23
24 // Disable OpenCL acceleration (only works when build with OpenCL support)
25 MagickPPExport void DisableOpenCL(void);
26
27 // Enable OpenCL acceleration (only works when build with OpenCL support)
28 MagickPPExport bool EnableOpenCL(void);
29
30 // C library initialization routine
31 MagickPPExport void InitializeMagick(const char *path_);
32
33 // Seed a new sequence of pseudo-random numbers
34 MagickPPExport void SetRandomSeed(const unsigned long seed);
35
36 // Set the ImageMagick security policy.
37 MagickPPExport bool SetSecurityPolicy(const std::string &policy_);
38
39 // C library initialization routine
40 MagickPPExport void TerminateMagick();
41 }
42 #endif // Magick_Functions_header
Magick::DisableOpenCL
MagickPPExport void DisableOpenCL(void)
Definition: Functions.cpp:31
Magick::EnableOpenCL
MagickPPExport bool EnableOpenCL(void)
Definition: Functions.cpp:36
Magick::SetRandomSeed
MagickPPExport void SetRandomSeed(const unsigned long seed)
Definition: Functions.cpp:52
MagickPPExport
#define MagickPPExport
Definition: Include.h:297
Include.h
Magick::CloneString
MagickPPExport void CloneString(char **destination_, const std::string &source_)
Definition: Functions.cpp:25
Magick
Definition: Blob.h:17
Magick::InitializeMagick
MagickPPExport void InitializeMagick(const char *path_)
Definition: Functions.cpp:45
Magick::SetSecurityPolicy
MagickPPExport bool SetSecurityPolicy(const std::string &policy_)
Definition: Functions.cpp:57
Magick::TerminateMagick
MagickPPExport void TerminateMagick()
Definition: Functions.cpp:69