break;
page=GetImageBoundingBox(image,&image->exception);
(void) FormatMagickString(geometry,MaxTextExtent,
- "%.20gx%.20g%+.20gx%+.20g",(double) page.width,(double)
+ "%.20gx%.20g%+.20g%+.20g",(double) page.width,(double)
page.height,(double) page.x,(double) page.y);
s=newSVpv(geometry,0);
PUSHs(s ? sv_2mortal(s) : &sv_undef);
geometry[MaxTextExtent];
(void) FormatMagickString(geometry,MaxTextExtent,
- "%.20gx%.20g%+.20gx%+.20g",(double) image->page.width,
+ "%.20gx%.20g%+.20g%+.20g",(double) image->page.width,
(double) image->page.height,(double) image->page.x,(double)
image->page.y);
s=newSVpv(geometry,0);
Composite two images (normal composition).
*/
(void) FormatMagickString(composite_geometry,MaxTextExtent,
- "%.20gx%.20g%+.20gx%+.20g",(double) composite_image->columns,
+ "%.20gx%.20g%+.20g%+.20g",(double) composite_image->columns,
(double) composite_image->rows,(double) geometry.x,(double)
geometry.y);
flags=ParseGravityGeometry(image,composite_geometry,&geometry,
else
if ((image->page.width != 0) && (image->page.height != 0))
(void) FormatMagickString(page_geometry,MaxTextExtent,
- "%.20gx%.20g%+.20gx%+.20g",(double) image->page.width,(double)
+ "%.20gx%.20g%+.20g%+.20g",(double) image->page.width,(double)
image->page.height,(double) image->page.x,(double) image->page.y);
else
if ((image->gravity != UndefinedGravity) &&
crop_info.y=(ssize_t) ceil((resolution.y/DefaultResolution)*extent.y/8.0-
0.5);
(void) FormatMagickString(geometry,MaxTextExtent,
- "%.20gx%.20g%+.20gx%+.20g",(double) crop_info.width,(double)
+ "%.20gx%.20g%+.20g%+.20g",(double) crop_info.width,(double)
crop_info.height,(double) crop_info.x,(double) crop_info.y);
(void) TransformImage(&annotate_image,geometry,(char *) NULL);
}
atan2(draw_info->affine.rx,draw_info->affine.sx);
}
(void) FormatMagickString(annotate_info.geometry,MaxTextExtent,
- "%.20gx%.20g%+.20gx%+.20g",(double) width,(double) height,
+ "%.20gx%.20g%+.20g%+.20g",(double) width,(double) height,
ceil(offset->x-0.5),ceil(offset->y-metrics->ascent-metrics->descent+
draw_info->interline_spacing-0.5));
pixel.pen_color.red=ScaleQuantumToShort(draw_info->fill.red);
if ((cache_info->debug != MagickFalse) &&
(QuantumTick((MagickOffsetType) nexus_info->region.y,cache_info->rows) != MagickFalse))
(void) LogMagickEvent(CacheEvent,GetMagickModule(),
- "%s[%.20gx%.20g%+.20gx%+.20g]",cache_info->filename,(double)
+ "%s[%.20gx%.20g%+.20g%+.20g]",cache_info->filename,(double)
nexus_info->region.width,(double) nexus_info->region.height,(double)
nexus_info->region.x,(double) nexus_info->region.y);
return(MagickTrue);
if ((cache_info->debug != MagickFalse) &&
(QuantumTick((MagickOffsetType) nexus_info->region.y,cache_info->rows) != MagickFalse))
(void) LogMagickEvent(CacheEvent,GetMagickModule(),
- "%s[%.20gx%.20g%+.20gx%+.20g]",cache_info->filename,(double)
+ "%s[%.20gx%.20g%+.20g%+.20g]",cache_info->filename,(double)
nexus_info->region.width,(double) nexus_info->region.height,(double)
nexus_info->region.x,(double) nexus_info->region.y);
return(MagickTrue);
if ((cache_info->debug != MagickFalse) &&
(QuantumTick((MagickOffsetType) nexus_info->region.y,cache_info->rows) != MagickFalse))
(void) LogMagickEvent(CacheEvent,GetMagickModule(),
- "%s[%.20gx%.20g%+.20gx%+.20g]",cache_info->filename,(double)
+ "%s[%.20gx%.20g%+.20g%+.20g]",cache_info->filename,(double)
nexus_info->region.width,(double) nexus_info->region.height,(double)
nexus_info->region.x,(double) nexus_info->region.y);
return(MagickTrue);
if ((cache_info->debug != MagickFalse) &&
(QuantumTick((MagickOffsetType) nexus_info->region.y,cache_info->rows) != MagickFalse))
(void) LogMagickEvent(CacheEvent,GetMagickModule(),
- "%s[%.20gx%.20g%+.20gx%+.20g]",cache_info->filename,(double)
+ "%s[%.20gx%.20g%+.20g%+.20g]",cache_info->filename,(double)
nexus_info->region.width,(double) nexus_info->region.height,(double)
nexus_info->region.x,(double) nexus_info->region.y);
return(MagickTrue);
if (windows->info.mapped == MagickFalse)
(void) XMapWindow(display,windows->info.id);
(void) FormatMagickString(text,MaxTextExtent,
- " %.20gx%.20g%+.20gx%+.20g",(double) chop_info.width,(double)
+ " %.20gx%.20g%+.20g%+.20g",(double) chop_info.width,(double)
chop_info.height,(double) chop_info.x,(double) chop_info.y);
XInfoWidget(display,windows,text);
XHighlightLine(display,windows->image.id,
if (windows->info.mapped == MagickFalse)
(void) XMapWindow(display,windows->info.id);
(void) FormatMagickString(text,MaxTextExtent,
- " %.20gx%.20g%+.20gx%+.20g",(double) crop_info.width,(double)
+ " %.20gx%.20g%+.20g%+.20g",(double) crop_info.width,(double)
crop_info.height,(double) crop_info.x,(double) crop_info.y);
XInfoWidget(display,windows,text);
XHighlightRectangle(display,windows->image.id,
Display pointer position.
*/
(void) FormatMagickString(text,MaxTextExtent,
- " %.20gx%.20g%+.20gx%+.20g",(double) crop_info.width,(double)
+ " %.20gx%.20g%+.20g%+.20g",(double) crop_info.width,(double)
crop_info.height,(double) crop_info.x,(double) crop_info.y);
XInfoWidget(display,windows,text);
}
Set primary selection.
*/
(void) FormatMagickString(text,MaxTextExtent,
- "%.20gx%.20g%+.20gx%+.20g",(double) crop_info.width,(double)
+ "%.20gx%.20g%+.20g%+.20g",(double) crop_info.width,(double)
crop_info.height,(double) crop_info.x,(double) crop_info.y);
request=(&(event.xselectionrequest));
(void) XChangeProperty(request->display,request->requestor,
Display info and draw drawing rectangle.
*/
(void) FormatMagickString(text,MaxTextExtent,
- " %.20gx%.20g%+.20gx%+.20g",(double) rectangle_info.width,
+ " %.20gx%.20g%+.20g%+.20g",(double) rectangle_info.width,
(double) rectangle_info.height,(double) rectangle_info.x,
(double) rectangle_info.y);
XInfoWidget(display,windows,text);
Display info and draw drawing rectangle.
*/
(void) FormatMagickString(text,MaxTextExtent,
- " %.20gx%.20g%+.20gx%+.20g",(double) rectangle_info.width,
+ " %.20gx%.20g%+.20g%+.20g",(double) rectangle_info.width,
(double) rectangle_info.height,(double) rectangle_info.x,
(double) rectangle_info.y);
XInfoWidget(display,windows,text);
if (windows->info.mapped == MagickFalse)
(void) XMapWindow(display,windows->info.id);
(void) FormatMagickString(text,MaxTextExtent,
- " %.20gx%.20g%+.20gx%+.20g",(double) roi_info.width,(double)
+ " %.20gx%.20g%+.20g%+.20g",(double) roi_info.width,(double)
roi_info.height,(double) roi_info.x,(double) roi_info.y);
XInfoWidget(display,windows,text);
XHighlightRectangle(display,windows->image.id,
Display pointer position.
*/
(void) FormatMagickString(text,MaxTextExtent,
- " %.20gx%.20g%+.20gx%+.20g",(double) roi_info.width,(double)
+ " %.20gx%.20g%+.20g%+.20g",(double) roi_info.width,(double)
roi_info.height,(double) roi_info.x,(double) roi_info.y);
XInfoWidget(display,windows,text);
}
Set primary selection.
*/
(void) FormatMagickString(text,MaxTextExtent,
- "%.20gx%.20g%+.20gx%+.20g",(double) roi_info.width,(double)
+ "%.20gx%.20g%+.20g%+.20g",(double) roi_info.width,(double)
roi_info.height,(double) roi_info.x,(double) roi_info.y);
request=(&(event.xselectionrequest));
(void) XChangeProperty(request->display,request->requestor,
/*
Display info on cropping rectangle.
*/
- (void) FormatMagickString(text,MaxTextExtent," %.20gx%.20g%+.20gx%+.20g",
+ (void) FormatMagickString(text,MaxTextExtent," %.20gx%.20g%+.20g%+.20g",
(double) crop_info->width,(double) crop_info->height,(double)
crop_info->x,(double) crop_info->y);
XInfoWidget(display,windows,text);
(void) SetImageArtifact(image,key,token);
(void) FormatMagickString(key,MaxTextExtent,"%s-geometry",name);
(void) FormatMagickString(geometry,MaxTextExtent,
- "%.20gx%.20g%+.20gx%+.20g",(double) bounds.width,(double)
+ "%.20gx%.20g%+.20g%+.20g",(double) bounds.width,(double)
bounds.height,(double) bounds.x,(double) bounds.y);
(void) SetImageArtifact(image,key,geometry);
GetMagickToken(q,&q,token);
geometry.x=x;
geometry.y=y;
(void) FormatMagickString(composite_geometry,MaxTextExtent,
- "%.20gx%.20g%+.20gx%+.20g",(double) composite_image->columns,(double)
+ "%.20gx%.20g%+.20g%+.20g",(double) composite_image->columns,(double)
composite_image->rows,(double) geometry.x,(double) geometry.y);
(void) ParseGravityGeometry(image,composite_geometry,&geometry,
&image->exception);
geometry.y=i/2;
(void) RaiseImage(preview_image,&geometry,MagickTrue);
(void) FormatMagickString(label,MaxTextExtent,
- "raise %.20gx%.20g%+.20gx%+.20g",(double) geometry.width,(double)
+ "raise %.20gx%.20g%+.20g%+.20g",(double) geometry.width,(double)
geometry.height,(double) geometry.x,(double) geometry.y);
break;
}
image->rows);
if ((image->page.width != 0) || (image->page.height != 0) ||
(image->page.x != 0) || (image->page.y != 0))
- (void) fprintf(file,"%.20gx%.20g%+.20gx%+.20g ",(double)
+ (void) fprintf(file,"%.20gx%.20g%+.20g%+.20g ",(double)
image->page.width,(double) image->page.height,(double) image->page.x,
(double) image->page.y);
(void) fprintf(file,"%.20g-bit ",(double) image->depth);
GetMagickDescription(magick_info));
(void) fprintf(file," Class: %s\n",MagickOptionToMnemonic(MagickClassOptions,
(ssize_t) image->storage_class));
- (void) fprintf(file," Geometry: %.20gx%.20g%+.20gx%+.20g\n",(double)
+ (void) fprintf(file," Geometry: %.20gx%.20g%+.20g%+.20g\n",(double)
image->columns,(double) image->rows,(double) image->tile_offset.x,(double)
image->tile_offset.y);
if ((image->magick_columns != 0) || (image->magick_rows != 0))
image->chromaticity.white_point.x,image->chromaticity.white_point.y);
}
if ((image->extract_info.width*image->extract_info.height) != 0)
- (void) fprintf(file," Tile geometry: %.20gx%.20g%+.20gx%+.20g\n",(double)
+ (void) fprintf(file," Tile geometry: %.20gx%.20g%+.20g%+.20g\n",(double)
image->extract_info.width,(double) image->extract_info.height,(double)
image->extract_info.x,(double) image->extract_info.y);
(void) fprintf(file," Interlace: %s\n",MagickOptionToMnemonic(
MagickComposeOptions,(ssize_t) image->compose));
if ((image->page.width != 0) || (image->page.height != 0) ||
(image->page.x != 0) || (image->page.y != 0))
- (void) fprintf(file," Page geometry: %.20gx%.20g%+.20gx%+.20g\n",(double)
+ (void) fprintf(file," Page geometry: %.20gx%.20g%+.20g%+.20g\n",(double)
image->page.width,(double) image->page.height,(double)
image->page.x,(double) image->page.y);
if ((image->page.x != 0) || (image->page.y != 0))
while ( next != (const Image *) NULL )
{
#if 0 /* For debuging */
- printf("image %.20g :- %.20g %.20gx%.20g%+.20gx%+.20g\n", (double) i,
+ printf("image %.20g :- %.20g %.20gx%.20g%+.20g%+.20g\n", (double) i,
(double) disposals[i],(double) bounds[i].width,(double)
bounds[i].height,(double) bounds[i].x,(double) bounds[i].y );
#endif
&sans,&sans);
y_offset+=(ssize_t) title_offset;
(void) FormatMagickString(montage->montage,MaxTextExtent,
- "%.20gx%.20g%+.20gx%+.20g",(double) (extract_info.width+
+ "%.20gx%.20g%+.20g%+.20g",(double) (extract_info.width+
(extract_info.x+border_width)*2),(double) (extract_info.height+
(extract_info.y+border_width)*2+(double) ((metrics.ascent-
metrics.descent+4)*number_lines+(montage_info->shadow != MagickFalse ? 4 :
clone_info->pointsize*=2.0;
(void) GetTypeMetrics(image_list[0],clone_info,&metrics);
(void) FormatMagickString(geometry,MaxTextExtent,
- "%.20gx%.20g%+.20gx%+.20g",(double) montage->columns,(double)
+ "%.20gx%.20g%+.20g%+.20g",(double) montage->columns,(double)
(metrics.ascent-metrics.descent),0.0,(double) extract_info.y+4);
(void) CloneString(&clone_info->geometry,geometry);
(void) CloneString(&clone_info->text,title);
Annotate composite tile with label.
*/
(void) FormatMagickString(geometry,MaxTextExtent,
- "%.20gx%.20g%+.20gx%+.20g",(double) ((montage_info->frame ?
+ "%.20gx%.20g%+.20g%+.20g",(double) ((montage_info->frame ?
image->columns : width)-2*border_width),(double)
(metrics.ascent-metrics.descent+4)*MultilineCensus(value),
(double) (x_offset+border_width),(double)
/*
Image geometry.
*/
- q+=FormatMagickString(q,extent,"%.20gx%.20g%+.20gx%+.20g",(double)
+ q+=FormatMagickString(q,extent,"%.20gx%.20g%+.20g%+.20g",(double)
image->page.width,(double) image->page.height,(double)
image->page.x,(double) image->page.y);
break;
Image bounding box.
*/
page=GetImageBoundingBox(image,&image->exception);
- q+=FormatMagickString(q,MaxTextExtent,"%.20gx%.20g%+.20gx%+.20g",
+ q+=FormatMagickString(q,MaxTextExtent,"%.20gx%.20g%+.20g%+.20g",
(double) page.width,(double) page.height,(double) page.x,(double)
page.y);
break;
median_image=DestroyImage(median_image);
if (image->debug != MagickFalse)
(void) LogMagickEvent(TransformEvent,GetMagickModule()," Deskew geometry: "
- "%.20gx%.20g%+.20gx%+.20g",(double) geometry.width,(double)
+ "%.20gx%.20g%+.20g%+.20g",(double) geometry.width,(double)
geometry.height,(double) geometry.x,(double) geometry.y);
crop_image=CropImage(deskew_image,&geometry,exception);
deskew_image=DestroyImage(deskew_image);
}
(void) FormatMagickString(key,MaxTextExtent,"%s",wand->pattern_id);
(void) SetImageArtifact(wand->image,key,wand->mvg+wand->pattern_offset);
- (void) FormatMagickString(geometry,MaxTextExtent,"%.20gx%.20g%+.20gx%+.20g",
+ (void) FormatMagickString(geometry,MaxTextExtent,"%.20gx%.20g%+.20g%+.20g",
(double) wand->pattern_bounds.width,(double) wand->pattern_bounds.height,
(double) wand->pattern_bounds.x,(double) wand->pattern_bounds.y);
(void) SetImageArtifact(wand->image,key,geometry);
assert(wand->signature == WandSignature);
if (wand->debug != MagickFalse)
(void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",wand->name);
- (void) FormatMagickString(geometry,MaxTextExtent,"%.20gx%.20g%+.20gx%+.20g",
+ (void) FormatMagickString(geometry,MaxTextExtent,"%.20gx%.20g%+.20g%+.20g",
(double) width,(double) height,(double) x,(double) y);
(void) CloneString(&wand->image_info->page,geometry);
return(MagickTrue);