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 » Developing U++ » U++ Developers corner » AGG
AGG [message #9941] Sun, 10 June 2007 11:24 Go to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Quote:


For me i hope it will be possible to integrate it into Draw instead of GDI.
In the code i don't want to know that for drawing lines is responsible agg or GDI, it schould be transparent.
But in AGG mode the interface should have a bit more options for drawing lines of different widths with any pen etc .



Well, this issue was already resolved and while there could be Draw variant, I strongly believe that AGG should be kept as separate engine. The main reason is that it has much more rich capabilities than Draw, OTOH we want to keep Draw interface minimal (so that it can be easily implemented anywhere). I think in your message, you see that too Wink

What we need is the seamless integration. The real problem there (not that apparent at the first look) is, in nutshell, printing.

That means you should be capable to store AGG painting into Drawing and then put it to the printer, in high resolution (600dpi is U++ standard).

That more or less rules out storing it as raster. There is quite reasonable interface ready in Draw capable of solving this issue - DrawData. In current Draw, it is capable of drawing rescaled images directly from compressed image formats, which was e.g. needed in one of my application, where 300dpi scanned image of full A4 page is printed behind some text produced by application (form-filler style of app). DrawData even tries to "compress" the raster data while sending them to the printer by replacing large uni-color areas with DrawRect and it also performs banding to reduce the memory requirements.

See Draw/DrawData and Draw/DrawRasterData.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon13.gif
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: Linux theide idle from vnc
Next Topic: What (or if) format of video buffer would be needed for video support?
Goto Forum:
  


Current Time: Fri Jun 20 15:54:09 CEST 2025

Total time taken to generate the page: 0.04688 seconds