Frustrating GDI+ problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bvermeersch@gmail.com

    #1

    Frustrating GDI+ problem

    Hi again all,

    I'm strugling with this stupid GDI+ problem for days now, well not for
    days but certainly for evenings.

    I'm trying to learn a bit about GDI+ and C# through this
    scopeapplicatio n and I'm running into problems when I try to draw the
    grid in a sepparet function, since the grid should only be drawn on
    resize and thus can be kept in a buffer. So far the idea, problem: it
    doesn't work and i don't see the problem.

    I included my messy code in a forumthread as an example, please forgive
    the mess. Cleanup is coming soon after this problem is solved.

    http://www.codeguru.com/forum/showthread.php?t=377534


    The problem dissapears when in the Draw method

    Code:

    //ResizeBackgroun d(buffer.Width, buffer.Height);

    is uncommented.

    Also note that the bitmap ramains buffered, only the lines on it are
    changed to some black dots on the almost left upper corner.

    Please help me out, I have really no clue at all!

    Kind regards, Jef

Working...