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 » Archive » AGG and Upp Draw integration...
Re: AGG and Upp Draw integration... [message #3661 is a reply to message #3660] Mon, 12 June 2006 07:47 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
I believe that AGG (and other SW renderers) should be supported via DrawData interface.

Something like:


....Draw& w;....

AGGDraw agg(w, x, y, cx, cy);
agg.DrawLine(...
...



There are two alternatives (to investigate):

- AGGDraw simply stores all drawing operations to String and its destructor performs DrawData (which paints the content using registred AGG routine)

- slightly more efficient approach would detect whether target is Drawing and performed storing just in that case; otherwise it would create Image and draw content

I would start with the first one. I believe that costs to record drawing first and replay later are negligible compared to actual drawing operations.

BTW, note that DrawData performs "RLE encoding" of resulting bitmap drawing which I believe should greatly reduce printer bandwidth in most common cases.

Mirek

P.S.: Please consider this as preliminary and do not be angry if I change mind completely. This is too important to accept very first version, we need some experimenting before final decision...

[Updated on: Mon, 12 June 2006 09:18]

Report message to a moderator

 
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
Read Message
Read Message
Read Message
Read Message
Previous Topic: Drag & Drop Example?
Next Topic: How to try classes inside TCtrlLib?
Goto Forum:
  


Current Time: Thu Apr 18 16:10:26 CEST 2024

Total time taken to generate the page: 0.02282 seconds