Results 1 to 1 of 1

Thread: [RESOLVED] (GDI+) converting a System.Drawing.Color to a System.Drawing.Brush

  1. #1

    Thread Starter
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Resolved [RESOLVED] (GDI+) converting a System.Drawing.Color to a System.Drawing.Brush

    Hi there,

    Is there a way without too much code to convert a passed ARGB System.Drawing.Color to a System.Drawing.Brush? Basically I want to be able to draw FillRectangles with an unkown color, to be set by a System.Drawing.Color property of a usercontrol.

    Edit - Figured it out "SolidBrush"...duh.

    Bill
    Last edited by conipto; Nov 12th, 2005 at 07:09 PM.
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width