Get area of a circle enclosed in an image?

  • Thread starter Thread starter Brian Basquille
  • Start date Start date
B

Brian Basquille

I have an image drawn on my form using GDI+ like so:

// image of puck is loaded and drawn
Image imagePuck = Image.FromFile("Puck.png");
g.DrawImage(imagePuck, puck_x, puck_y, 36, 36);

The image is just a simple circle. How would i go about getting the area of
this circle??
 
Never mind.. solved my problem by changing the image to an ellipse.

Didn't want to use an Ellipse as they're (apparently) supposed to be more
demanding to redraw than an Image in GDI+
 
Back
Top