2 Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 http://www.imagemagick.org/script/license.php
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.
16 MagickCore private image drawing methods.
18 #ifndef _MAGICKCORE_DRAW_PRIVATE_H
19 #define _MAGICKCORE_DRAW_PRIVATE_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 #include "MagickCore/cache.h"
26 #include "MagickCore/image.h"
27 #include "MagickCore/memory_.h"
29 static inline MagickBooleanType GetFillColor(const DrawInfo *draw_info,
30 const ssize_t x,const ssize_t y,PixelInfo *fill,ExceptionInfo *exception)
32 if (draw_info->fill_pattern == (Image *) NULL)
34 *fill=draw_info->fill;
44 pattern=draw_info->fill_pattern;
45 #if defined(MAGICKCORE_OPENMP_SUPPORT) && (_OPENMP >= 200203)
48 status=GetOneVirtualMagickPixel(pattern,TileVirtualPixelMethod,x+
49 pattern->tile_offset.x,y+pattern->tile_offset.y,fill,exception);
54 static inline MagickBooleanType GetStrokeColor(const DrawInfo *draw_info,
55 const ssize_t x,const ssize_t y,PixelInfo *stroke,ExceptionInfo *exception)
57 if (draw_info->stroke_pattern == (Image *) NULL)
59 *stroke=draw_info->stroke;
69 pattern=draw_info->stroke_pattern;
70 #if defined(MAGICKCORE_OPENMP_SUPPORT) && (_OPENMP >= 200203)
73 status=GetOneVirtualMagickPixel(pattern,TileVirtualPixelMethod,x+
74 pattern->tile_offset.x,y+pattern->tile_offset.y,stroke,exception);
79 #if defined(__cplusplus) || defined(c_plusplus)