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
Re: AGG [message #9968 is a reply to message #9960] Mon, 11 June 2007 17:28 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Ok, how should it look like (IMO) interface-wise:

void SomePaintRoutine(Draw& w)
{
    AGGDraw agg(w, 10, 10, 200, 200);
    agg.DrawRect(...); // AGGDraw is derived from Draw
    agg.DrawBezierCurve(...); // But also has some specific methods..
    // ... destructor of AGGDraw "flushes" it into draw
}


Now the important part -> this should work with Drawing and PdfDraw and PrinterDraw too, in that case drawing ops get recorded into binary stream and "flush to draw" will be performed by DrawData.

I guess there should be check whether we are painting to the screen, in that case the image would be drawn directly into ImageBuffer and applied using DrawImage.

Intitial implementation of course can use this ImageBuffer path only (not be bothered with Drawing / DrawData).
 
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 19:22:57 CEST 2025

Total time taken to generate the page: 0.03527 seconds