locked
System.Drawing namespace RRS feed

  • Question

  • User-1438079923 posted
    I am creating a bitmap of (100, 100) and using graphics.fromimage to create a graphic.  Is there a way to change the background color of your bitmap or graphics without having to creat a brush and fill in the whole square manually?
    Sunday, December 4, 2005 8:44 PM

All replies

  • User-1372641848 posted
    If g is your graphics object and you want to set white background then use.

    g.Clear(Color.White);



    Sunday, December 4, 2005 11:45 PM