Menu

transparent brush?

2004-08-17
2012-09-26
  • Nobody/Anonymous

    Is there a way to draw a rectangle so that only the lines are drawn, not the inside?

    I mean other than drawing with a white brush onto a seperate DC and then bitblting.

     
    • Paul van Zelst

      Paul van Zelst - 2004-08-17

      Set the brush to a NULL brush. Try this:

      SelectObject(dc, GetStockObject(HOLLOW_BRUSH));

      Paul

       
    • aventura_alex

      aventura_alex - 2007-09-05

      why don't you just try Polyline?
      it will draw an outline of any shape you give the coordinates.
      you just have to set the last point equal to the first one.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.