سؤال

So the .NET documentation says that this creates a filled ellipse with the UPPER LEFT CORNER at the X,Y coordinate specified.

But I need the ellipse to be CENTERED on the X,Y coordinate I supplied.

How do I do this?

Thanks!

هل كانت مفيدة؟

المحلول

From the desired center point, decrease X by half of the width and decrease Y by half of the height.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top