428,813 Members | 2,269 Online
Need help? Post your question and get tips & solutions from a community of 428,813 IT Pros & Developers. It's quick & easy.

# Turning A Circle.... How Many Pixels??

 P: n/a Folks, I have an image of a circle, which I am trying to straighten out into a flat line. I am essentially wanting to look at the image, and read a straight line from the centre, and then plot this on a graph. Then I want to rotate the image 1 degree and read the next line down, if you see what I mean. My question is, how do I determine how many pixels wide I should read, in order not to miss anything out? IE: If I rotate it 1 degree, how many pixels is this going to be? I am guessing it is dependent on the image itself? I am trying to do this with C# and GDI+, although any comments, and source in any language, would be very gratefully appreciated. Craig. Nov 21 '05 #1
6 Replies

 P: n/a "Craig Parsons" wrote in news:41***********************@ptn-nntp-reader01.plus.net... Folks, I have an image of a circle, which I am trying to straighten out into a flat line. I am essentially wanting to look at the image, and read a straight line from the centre, and then plot this on a graph. Then I want to rotate the image 1 degree and read the next line down, if you see what I mean. My question is, how do I determine how many pixels wide I should read, in order not to miss anything out? IE: If I rotate it 1 degree, how many pixels is this going to be? I am guessing it is dependent on the image itself? IIRC the circumference of a circle equals 2*r*pi. That's 360 degrees. Not sure if I got your question right... Niki Nov 21 '05 #2