if (q == (Quantum *) NULL)
continue;
GetPixelInfo(image,&fill_color);
- (void) GetFillColor(draw_info,x_offset,y_offset,&fill_color,
- exception);
+ GetFillColor(draw_info,x_offset,y_offset,&fill_color,exception);
fill_opacity=fill_opacity*fill_color.alpha;
CompositePixelOver(image,&fill_color,fill_opacity,q,
GetPixelAlpha(image,q),q);
break;
for (x=0; x < (ssize_t) annotate_image->columns; x++)
{
- (void) GetFillColor(draw_info,x,y,&fill_color,exception);
+ GetFillColor(draw_info,x,y,&fill_color,exception);
SetPixelAlpha(annotate_image,ClampToQuantum((((double) QuantumScale*
GetPixelIntensity(annotate_image,q)*fill_color.alpha))),q);
SetPixelRed(annotate_image,fill_color.red,q);
extern "C" {
#endif
-static inline MagickBooleanType GetFillColor(const DrawInfo *draw_info,
- const ssize_t x,const ssize_t y,PixelInfo *fill,ExceptionInfo *exception)
+static inline void GetFillColor(const DrawInfo *draw_info,const ssize_t x,
+ const ssize_t y,PixelInfo *fill,ExceptionInfo *exception)
{
if (draw_info->fill_pattern == (Image *) NULL)
{
*fill=draw_info->fill;
- return(MagickTrue);
+ return;
}
{
Image
*pattern;
- MagickBooleanType
- status;
-
pattern=draw_info->fill_pattern;
- status=GetOneVirtualPixelInfo(pattern,TileVirtualPixelMethod,x+
+ (void) GetOneVirtualPixelInfo(pattern,TileVirtualPixelMethod,x+
pattern->tile_offset.x,y+pattern->tile_offset.y,fill,exception);
- return(status);
}
}
-static inline MagickBooleanType GetStrokeColor(const DrawInfo *draw_info,
- const ssize_t x,const ssize_t y,PixelInfo *stroke,ExceptionInfo *exception)
+static inline void GetStrokeColor(const DrawInfo *draw_info,const ssize_t x,
+ const ssize_t y,PixelInfo *stroke,ExceptionInfo *exception)
{
if (draw_info->stroke_pattern == (Image *) NULL)
{
*stroke=draw_info->stroke;
- return(MagickTrue);
+ return;
}
{
Image
*pattern;
- MagickBooleanType
- status;
-
pattern=draw_info->stroke_pattern;
- status=GetOneVirtualPixelInfo(pattern,TileVirtualPixelMethod,x+
+ (void) GetOneVirtualPixelInfo(pattern,TileVirtualPixelMethod,x+
pattern->tile_offset.x,y+pattern->tile_offset.y,stroke,exception);
- return(status);
}
}
if ((x == (ssize_t) ceil(primitive_info->point.x-0.5)) &&
(y == (ssize_t) ceil(primitive_info->point.y-0.5)))
{
- (void) GetFillColor(draw_info,x-start_x,y-start_y,&pixel,exception);
+ GetFillColor(draw_info,x-start_x,y-start_y,&pixel,exception);
SetPixelViaPixelInfo(image,&pixel,q);
}
q+=GetPixelChannels(image);
fill_alpha=fill_alpha > 0.25 ? 1.0 : 0.0;
stroke_alpha=stroke_alpha > 0.25 ? 1.0 : 0.0;
}
- (void) GetFillColor(draw_info,x-start_x,y-start_y,&fill_color,exception);
+ GetFillColor(draw_info,x-start_x,y-start_y,&fill_color,exception);
fill_alpha=fill_alpha*fill_color.alpha;
CompositePixelOver(image,&fill_color,fill_alpha,q,(double)
GetPixelAlpha(image,q),q);
- (void) GetStrokeColor(draw_info,x-start_x,y-start_y,&stroke_color,exception);
+ GetStrokeColor(draw_info,x-start_x,y-start_y,&stroke_color,exception);
stroke_alpha=stroke_alpha*stroke_color.alpha;
CompositePixelOver(image,&stroke_color,stroke_alpha,q,(double)
GetPixelAlpha(image,q),q);
q=GetCacheViewAuthenticPixels(image_view,x,y,1,1,exception);
if (q == (Quantum *) NULL)
break;
- (void) GetFillColor(draw_info,x,y,&pixel,exception);
+ GetFillColor(draw_info,x,y,&pixel,exception);
SetPixelAlpha(image,ClampToQuantum(pixel.alpha),q);
(void) SyncCacheViewAuthenticPixels(image_view,exception);
break;
q+=GetPixelChannels(image);
continue;
}
- (void) GetFillColor(draw_info,x,y,&pixel,exception);
+ GetFillColor(draw_info,x,y,&pixel,exception);
SetPixelAlpha(image,ClampToQuantum(pixel.alpha),q);
q+=GetPixelChannels(image);
}
break;
for (x=0; x < (ssize_t) image->columns; x++)
{
- (void) GetFillColor(draw_info,x,y,&pixel,exception);
+ GetFillColor(draw_info,x,y,&pixel,exception);
SetPixelAlpha(image,ClampToQuantum(pixel.alpha),q);
q+=GetPixelChannels(image);
}
if (q == (Quantum *) NULL)
break;
GetPixelInfo(image,&pixel);
- (void) GetFillColor(draw_info,x,y,&pixel,exception);
+ GetFillColor(draw_info,x,y,&pixel,exception);
SetPixelViaPixelInfo(image,&pixel,q);
(void) SyncCacheViewAuthenticPixels(image_view,exception);
break;
q+=GetPixelChannels(image);
continue;
}
- (void) GetFillColor(draw_info,x,y,&pixel,exception);
+ GetFillColor(draw_info,x,y,&pixel,exception);
SetPixelViaPixelInfo(image,&pixel,q);
q+=GetPixelChannels(image);
}
break;
for (x=0; x < (ssize_t) image->columns; x++)
{
- (void) GetFillColor(draw_info,x,y,&pixel,exception);
+ GetFillColor(draw_info,x,y,&pixel,exception);
SetPixelViaPixelInfo(image,&pixel,q);
q+=GetPixelChannels(image);
}
q=GetCacheViewAuthenticPixels(image_view,x,y,1,1,exception);
if (q == (Quantum *) NULL)
break;
- (void) GetFillColor(draw_info,x,y,&fill_color,exception);
+ GetFillColor(draw_info,x,y,&fill_color,exception);
CompositePixelOver(image,&fill_color,(double) fill_color.alpha,q,
(double) GetPixelAlpha(image,q),q);
(void) SyncCacheViewAuthenticPixels(image_view,exception);