18#ifndef MAGICKCORE_DRAW_PRIVATE_H
19#define MAGICKCORE_DRAW_PRIVATE_H
21#include "MagickCore/cache.h"
22#include "MagickCore/image.h"
23#include "MagickCore/memory_.h"
25#if defined(__cplusplus) || defined(c_plusplus)
29static inline void GetFillColor(
const DrawInfo *draw_info,
const ssize_t x,
32 if (draw_info->fill_pattern == (
Image *) NULL)
34 *fill=draw_info->fill;
41 pattern=draw_info->fill_pattern;
42 (void) GetOneVirtualPixelInfo(pattern,TileVirtualPixelMethod,x+
43 pattern->tile_offset.x,y+pattern->tile_offset.y,fill,exception);
44 if (fabs(draw_info->fill_alpha-(
double) TransparentAlpha) >= MagickEpsilon)
45 fill->alpha*=QuantumScale*draw_info->fill_alpha;
49static inline void GetStrokeColor(
const DrawInfo *draw_info,
const ssize_t x,
52 if (draw_info->stroke_pattern == (
Image *) NULL)
54 *stroke=draw_info->stroke;
61 pattern=draw_info->stroke_pattern;
62 (void) GetOneVirtualPixelInfo(pattern,TileVirtualPixelMethod,x+
63 pattern->tile_offset.x,y+pattern->tile_offset.y,stroke,exception);
64 if (fabs(draw_info->stroke_alpha-(
double) TransparentAlpha) >= MagickEpsilon)
65 stroke->alpha*=QuantumScale*draw_info->stroke_alpha;
69#if defined(__cplusplus) || defined(c_plusplus)