BryanZM
Member
Hello, First of all just let me say that Im relatively new to the drawing namespace.
Here is what im trying to do:
// Declare an array of rectangles...
Rectangle[] rects = {
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0)
} ;
bTimes = 5 ;
for(int i = 0;i<bTimes;i++)
{
yway = 5 * i ;
rects = new Rectangle(xway,yway,23,12) ;
}
g.DrawRectangles(pen,rects) ;
When the loop completes there is only one rectangle, allthough im pretty sure the array is filled with rectangles and I think it should draw them....
Also how can I define a empty array of rectangles with just a specified size???
Any help would be greatly apprectiated!!!
Thanks, Bryan
Here is what im trying to do:
// Declare an array of rectangles...
Rectangle[] rects = {
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0),
new Rectangle(0,0,0,0)
} ;
bTimes = 5 ;
for(int i = 0;i<bTimes;i++)
{
yway = 5 * i ;
rects = new Rectangle(xway,yway,23,12) ;
}
g.DrawRectangles(pen,rects) ;
When the loop completes there is only one rectangle, allthough im pretty sure the array is filled with rectangles and I think it should draw them....
Also how can I define a empty array of rectangles with just a specified size???
Any help would be greatly apprectiated!!!
Thanks, Bryan