Problem in GDI+
-
Hi.. I need to draw a dotted Sine wave using GDI+ concept in Visual C#, please let me know which GDI+ Object i need to use.. replay asap
you need to get a Graphics object. You can either respond to the paint event on the form and use e.Graphics, or you can create your own graphics object by calling CreateGrapics() on the control you want to draw onto.
Simon
-
you need to get a Graphics object. You can either respond to the paint event on the form and use e.Graphics, or you can create your own graphics object by calling CreateGrapics() on the control you want to draw onto.
Simon
-
hi.. Simon I have created a graphics Object using this.CreateGraphics, now i need to know how to draw dotted Sine wave.. pls help me
-
Graphics.DrawCurve()
and give it somePoint
's.xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - out now!
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x)) -
hi..leppie Good evening..:-) i dont want to draw continuous Sine wave, i just wanted to draw dotted sine wave, can u suggest me some related links..
skvs wrote:
i dont want to draw continuous Sine wave, i just wanted to draw dotted sine wave, can u suggest me some related links..
Then use a 'dotted' Pen. I dont know the exact property to set, but Pen (or Brush) have those options.
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - out now!
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x)) -
skvs wrote:
i dont want to draw continuous Sine wave, i just wanted to draw dotted sine wave, can u suggest me some related links..
Then use a 'dotted' Pen. I dont know the exact property to set, but Pen (or Brush) have those options.
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - out now!
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x)) -
skvs wrote:
i already checked the properties of Pen and Brush, dotted pen is not there..
You dont try very hard, do you? What do you think the
DashStyle
property do?xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - out now!
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x)) -
skvs wrote:
i already checked the properties of Pen and Brush, dotted pen is not there..
You dont try very hard, do you? What do you think the
DashStyle
property do?xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - out now!
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x)) -
no nothing like that, i didnt know where that option is...
Pen p = new pen(Color.Black).DashStyle
is still giving an error. pls leppie
skvs wrote:
is still giving an error.
The problem lies with your knowledge of C#. These things are normally discussed in the first few chapters of any C# book. You need to do:
Pen p = new Pen(Color.Back);
p.DashStyle = DashStyle.Dot;xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - out now!
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x)) -
skvs wrote:
is still giving an error.
The problem lies with your knowledge of C#. These things are normally discussed in the first few chapters of any C# book. You need to do:
Pen p = new Pen(Color.Back);
p.DashStyle = DashStyle.Dot;xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 beta 1 - out now!
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))