CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2009
    Posts
    11

    Drawing Help Request

    Hi,

    I'm learning drawing with C#. When I draw a rectangle and fill it, ala
    g.DrawRectangle (Pens.Black, testRectangle);
    Brush test = new HatchBrush(...);
    g.FillRectangle(test, testRectangle);

    The top and left-hand border of my rectangle be quashed by the hatch marks. Am I doing something wrong? Please tell me what it is?

    Thanks for your time and attention,
    Frank

  2. #2
    Join Date
    Jun 2008
    Posts
    2,477

    Re: Drawing Help Request

    You are filling over the border since you are drawing to the same rectangle. Think about it for a minute and it makes sense. Just fill it in first and then draw the border.

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

Featured