473,404 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

trying to use PointF in a loop?

PointF is used as part of the fillpolygon method.
The code below is looping through the array count and then creating a new
point based on 2 array list values. One array has the x data points and the
other has the y data points. The problem is I need to change the point name
in the last line for each time through the loop so it does not just write
over the existing one. Tried using a variable string but it did not work,
any ideas? PointF takes 2 float arguments hence the data conversions.

for (int i_count = 0; i_count <= i_xcount;i_count++)
{
d_1 = Convert.ToDouble (Arx[i_count]);
float x1 = (float) d_1;
d_2 = Convert.ToDouble (Ary[i_count]);
float y1 =(float) d_2;
PointF point = new PointF (x1,y1);//this is the line that needs a
variablename
}
--

--
Paul G
Software engineer.
Jun 9 '06 #1
1 3557
figured out the solution!
--
Paul G
Software engineer.
"Paul" wrote:
PointF is used as part of the fillpolygon method.
The code below is looping through the array count and then creating a new
point based on 2 array list values. One array has the x data points and the
other has the y data points. The problem is I need to change the point name
in the last line for each time through the loop so it does not just write
over the existing one. Tried using a variable string but it did not work,
any ideas? PointF takes 2 float arguments hence the data conversions.

for (int i_count = 0; i_count <= i_xcount;i_count++)
{
d_1 = Convert.ToDouble (Arx[i_count]);
float x1 = (float) d_1;
d_2 = Convert.ToDouble (Ary[i_count]);
float y1 =(float) d_2;
PointF point = new PointF (x1,y1);//this is the line that needs a
variablename
}
--

--
Paul G
Software engineer.

Jun 9 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Knocked Wood | last post by:
Hi, I looked around and can't find anything on this at all and can not get it to work for IE. I'm trying to loop multiple sounds on a game, with three unique variables, when a link is clicked....
8
by: Drew | last post by:
I am building an application for keeping track of user permissions here at work. I have built the interfaces, and am now working on the processing page for inserting to the database. I am having...
2
by: Mike Wilson | last post by:
I'm trying to get a loop going based on my VB code below in Access. I've tested the code by selecting an individual record set and clicking the command 5 button. It works. Now instead of clicking...
3
by: jcrouse | last post by:
I am trying trying to loop through some label controls and setting some properties for the labels I'm looping through. Currently I am addressing the labels one at a time with IF...Then logic, like...
3
by: jdjohns74 | last post by:
I've never written a Python program before and I'm trying to read a config file with file path/names (eg. c:\\python24\\*.dll, ... *.exe) to create an ouput file of filename + md5 values. I'm...
9
by: wreed | last post by:
I have a for loop seen below.... var the_form = document.getElementById(formName); for(var i=0; i<the_form.length; i++) { var temp = the_form.elements.type; if (temp == "radio") { for (x =...
3
by: jismon | last post by:
Hi, I have one problem when i'm trying to loop thorugh the child nodes in a XML string in JAVA. The first Loop is working but in the child node there i want to loop and get the values but it doesn't...
2
by: mcpete | last post by:
Hi all, I've been searching for a while, and have not been able to find a working solution. I'm trying to change the name of multiple strings within some serverside vbscript, depending on the...
6
by: s_m_b | last post by:
Got this code, which works fine in FF3 - it dynamically redraws a menu from user input. #### function so_clearInnerHTML(obj) { // so long as obj has children, remove them while(obj.firstChild)...
4
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have a gridview that has 1 row of data. I am trying to set the values of dropdown boxes for each data row based on the data I have binded to the grid but for some reason when I use the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.