locked
Unable to draw graphics RRS feed

  • Question

  • User1129905013 posted

    Hi, I wrote following code to draw a string and pie chart. It is working fine on my office machine but not able to draw on my home machine. Difference is only, at home i am using LCD TV as a monitor and in office using CRT Monitor. Please help me to solve this issue ASAP.

    Graphics

    graphics = this.CreateGraphics();

    graphics.DrawString("ashok", new Font("arial", 8,FontStyle.Bold), new SolidBrush(Color.Red),new PointF(10,10));

    graphics.DrawPie(

    new Pen(new SolidBrush(Color.Red)), new Rectangle

    (100, 100, 100, 100), 180, 180);

    Thanks & Regards

    Ashok Vishvakarma

     

    Wednesday, September 9, 2009 9:39 AM

Answers

  • User-1659704165 posted

    Hi,

    use Gdi+ in asp.net..

    http://www.geekpedia.com/tutorial123_Working-with-GDIplus-in-ASP.NET.html

    Chk the above link

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 10, 2009 12:56 AM

All replies

  • User-1659704165 posted

    Hi,

    use Gdi+ in asp.net..

    http://www.geekpedia.com/tutorial123_Working-with-GDIplus-in-ASP.NET.html

    Chk the above link

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, September 10, 2009 12:56 AM
  • User1129905013 posted

     Hi Avinash,

    For your kind information i am working on windows application. By mistakenly it is not mentioned in my prevoius post.

    Thanks & Regards

    Ashok Vishvakarma

    Friday, September 11, 2009 5:55 AM
  • User-1659704165 posted

    Logic Remains The Same U may have to some Modifcation in Syntax and Rest Will work

    Saturday, September 12, 2009 5:24 AM