(void) SetImageBackgroundColor(image,exception);
draw_info=CloneDrawInfo(image_info,(DrawInfo *) NULL);
(void) CloneString(&draw_info->text,image_info->filename);
- (void) FormatLocaleString(geometry,MagickPathExtent,"0x0%+ld%+ld",(long) page.x,
- (long) page.y);
+ (void) FormatLocaleString(geometry,MagickPathExtent,"%lux%lu%+ld%+ld",
+ image->columns,image->rows,(long) page.x,(long) page.y);
(void) CloneString(&draw_info->geometry,geometry);
status=GetTypeMetrics(image,draw_info,&metrics,exception);
if (status == MagickFalse)
ThrowReaderException(TypeError,"UnableToGetTypeMetrics");
page.y=(ssize_t) ceil((double) page.y+metrics.ascent-0.5);
- (void) FormatLocaleString(geometry,MagickPathExtent,"0x0%+ld%+ld",(long) page.x,
- (long) page.y);
+ (void) FormatLocaleString(geometry,MagickPathExtent,"%lux%lu%+ld%+ld",
+ image->columns,image->rows,(long) page.x,(long) page.y);
(void) CloneString(&draw_info->geometry,geometry);
(void) CopyMagickString(filename,image_info->filename,MagickPathExtent);
if (*draw_info->text != '\0')
offset+=(ssize_t) (metrics.ascent-metrics.descent);
if (image->previous == (Image *) NULL)
{
- status=SetImageProgress(image,LoadImageTag,offset,image->rows);
+ status=SetImageProgress(image,LoadImageTag,(MagickOffsetType) offset,
+ image->rows);
if (status == MagickFalse)
break;
}
*image;
long
- type,
x_offset,
- y,
y_offset;
PixelInfo
*q;
ssize_t
- count;
+ count,
+ type,
+ y;
unsigned long
depth,
green+=(range+1)/2.0;
blue+=(range+1)/2.0;
}
- pixel.red=ScaleAnyToQuantum((QuantumAny) (red+0.5),range);
- pixel.green=ScaleAnyToQuantum((QuantumAny) (green+0.5),range);
- pixel.blue=ScaleAnyToQuantum((QuantumAny) (blue+0.5),range);
- pixel.black=ScaleAnyToQuantum((QuantumAny) (black+0.5),range);
- pixel.alpha=ScaleAnyToQuantum((QuantumAny) (alpha+0.5),range);
- q=GetAuthenticPixels(image,x_offset,y_offset,1,1,exception);
+ pixel.red=(MagickRealType) ScaleAnyToQuantum((QuantumAny) (red+0.5),
+ range);
+ pixel.green=(MagickRealType) ScaleAnyToQuantum((QuantumAny) (green+0.5),
+ range);
+ pixel.blue=(MagickRealType) ScaleAnyToQuantum((QuantumAny) (blue+0.5),
+ range);
+ pixel.black=(MagickRealType) ScaleAnyToQuantum((QuantumAny) (black+0.5),
+ range);
+ pixel.alpha=(MagickRealType) ScaleAnyToQuantum((QuantumAny) (alpha+0.5),
+ range);
+ q=GetAuthenticPixels(image,(ssize_t) x_offset,(ssize_t) y_offset,1,1,
+ exception);
if (q == (Quantum *) NULL)
continue;
SetPixelViaPixelInfo(image,&pixel,q);
MagickFalse,value);
if (LocaleCompare(image_info->magick,"SPARSE-COLOR") != 0)
{
- ssize_t
+ size_t
depth;
depth=compliance == SVGCompliance ? image->depth :