Clear Graphics Object to Black or other RGB

Posted by Jimmy on Stack Overflow See other posts from Stack Overflow or by Jimmy
Published on 2010-04-15T14:20:27Z Indexed on 2010/04/15 14:23 UTC
Read the original article Hit count: 188

Filed under:
|

I am a rank beginner in C#. I am currently using this code:

        objGraphics.Clear(SystemColors.Control);

What I want to do is Clear this object to black (or some other RGB color), and I'm stumped as to how to replace the SystemColors.Control with, preferably, an RGB color spec. I'd probably want to clear to black most of the time. Any help will be much appreciated!

© Stack Overflow or respective owner

Related posts about c#

Related posts about graphics