Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

C# Passing color into a method.

  1. Apr 30, 2009 #1
    How would you go about passing a color into a C# method and using that color inside the method to create a new pen? Assuming everything else is defined

    Is it MethodName(Color color)
    Graphics pen1 = new Pen(color.Color,1);



    or is it something completely different?
     
  2. jcsd
  3. Apr 30, 2009 #2

    harborsparrow

    User Avatar
    Gold Member

    that should do it
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: C# Passing color into a method.
Loading...