U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » High Performance Drawing
Re: High Performance Drawing [message #13329 is a reply to message #13328] Tue, 01 January 2008 23:54 Go to previous messageGo to previous message
phirox is currently offline  phirox
Messages: 49
Registered: December 2007
Member
Ok I was further playing and found out that you can use DrawingDraw for much faster performance. Basically this solves the problem imo.

Use the following piece of code in your Paint routine:

        DrawingDraw dd(GetSize());

        dd.DrawRect(GetSize(), White);
        dd.DrawLine(x,y,150,150,50,Blue);

        draw.DrawDrawing(0, 0, GetSize().cx, GetSize().cy, dd);


You can turn on backpainting for a flicker-free version, with a small performance hit.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Alpha channel in raster images
Next Topic: Optimized storage of 1BPP images
Goto Forum:
  


Current Time: Tue Jun 23 13:27:12 GMT+2 2026

Total time taken to generate the page: 0.00869 seconds