Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Mon Apr 29 05:39:51 CEST 2024

Total time taken to generate the page: 0.07799 seconds