MagickWand  6.8.5
magick-wand-private.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2013 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License.
6  obtain a copy of the License at
7 
8  http://www.imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  ImageMagick pixel wand API.
17 */
18 #ifndef _MAGICKWAND_MAGICK_WAND_PRIVATE_H
19 #define _MAGICKWAND_MAGICK_WAND_PRIVATE_H
20 
21 #if defined(__cplusplus) || defined(c_plusplus)
22 extern "C" {
23 #endif
24 
25 #define DegreesToRadians(x) (MagickPI*(x)/180.0)
26 #define MagickPI 3.14159265358979323846264338327950288419716939937510
27 #define MagickWandId "MagickWand"
28 #define QuantumTick(i,span) ((MagickBooleanType) ((((i) & ((i)-1)) == 0) || \
29  (((i) & 0xfff) == 0) || \
30  ((MagickOffsetType) (i) == ((MagickOffsetType) (span)-1))))
31 #define RadiansToDegrees(x) (180.0*(x)/MagickPI)
32 
34 {
35  size_t
36  id;
37 
38  char
40 
41  ExceptionInfo
43 
44  ImageInfo
46 
47  QuantizeInfo
49 
50  Image
52 
53  MagickBooleanType
56  debug;
57 
58  size_t
60 };
61 
62 #if defined(__cplusplus) || defined(c_plusplus)
63 }
64 #endif
65 
66 #endif