문제

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