How do you calculate this? I'd like to do something like that in one of my PHP scripts so folks could input some values and it is autocalculated.
Fred Weinhaus wrote: > Your center is misplace. it should be 31.5, 31.5 not 32,32 > > > > > >> Thanks for the reply Pete, >> >> That got me a bit closer, but... try it with a stroke width of 7 and a >> -size of 2rx2r.. and you'll see the problem :) >> I want the final image size to perfectly fit the outer edge of the >> stroke >> >> I can come close using your formula slightly modified. The problem is >> that the strokewidth causes the resulting circle to be bigger than >> than the radius specifed. It seems to me that the stroke is centered >> on the circumference, so that if it is 8 pixel stroke, 4 will be >> inside the specified radius and 4 outside (not sure what happens for >> odd stroke widths!). Which means that the image size and x,y needs to >> be adjusted by half the stroke width. >> >> ...so here's an example with strokewidth 8 and radius 30. >> >> convert -size 64x64 xc:skyblue -fill white -stroke black -strokewidth >> 8 -draw "circle 32,32,60,32" /tmp/test.gif >> >> ... which comes pretty close, but the bottom and right edges of the >> image are missing a pixel of width.. so the resulting image looks >> truncated. >> >> >> How can I correct for this? >> >> > _______________________________________________ > Magick-users mailing list > [email protected] > http://studio.imagemagick.org/mailman/listinfo/magick-users > > > -- Bob Meetin www.dottedi.biz 303-926-0167 Hook up with me on Twitter, Facebook, LinkedIn, Plaxo Pulse and Bebo or catch my blog at www.dottedi.biz/blog.php _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
