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+
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top