Re: A puzzling GDI+ Q...;)
well just the wrong math:)
drawbars(e.Graphics,Color.Red,Color.Blue,3,0);
drawbars(e.Graphics,Color.Yellow,Color.Red,(this.Width/4),0);
drawbars(e.Graphics,Color.Green,Color.Blue,(this.Width/2),0);
drawbars(e.Graphics,Color.Chocolate,Color.White,(int)(this.Width *3.0/4),0);
I just changed the width * whatever's
and inside the draw function, change /5 to /4
Re: A puzzling GDI+ Q...;)
Wow Mr Polite,You're too good at Math too...Awesomeeee
hmmm,but,this correction you made leaves a white gap between each bar.Its perfect apart from that. :)
Re: A puzzling GDI+ Q...;)
I was actually trying to draw many bars all across the form..without any gaps between the bars and no empty space on the right side.I dont know what math i should use though.
Forgive me since Im bad at math.