Question

I am trying to use imagemagick to arc an image and have it fit into a predefined arc space. For that predefined arc I know the circumference of the top and bottom segments along with the width of the space between the two circumferences. I need to get the arc angle along with the top and bottom radius values so that I can feed those into imagemagick. Any ideas on how I can calculate those values?

Était-ce utile?

La solution

enter image description here

TopLength = (r0 + Width) * Alpha
BottomLength  = r0 * Alpha
Alpha = (TopLength - BottomLength) / Width  

(angle in radians)

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top