Only a short answer for the moment. First: its not finished.
Second: If you are drawing, imagine a Zoom level about 100x, and the page needs about 10 seconds to render. You can draw on it, because then only your line is draw to the current document, nothing more, no re-rendering etc. (if you draw a line about 10*2px on your screen then 30*22px are redrawn, 10px more in each direction, because of antialising etc.) This will work in any case. But if you use the eraser, then you have a problem...;-) I know this, an I will optimize this, all is prepared, all information about the range is here, only the repaint algorithm has to be written... Because I was working on the drawing algorithm, e.g. drawing Lines and drawing images until last week, scale things is not yet implemented, so its not a good Idea to implement this optimisation now, because if something is not draw I don't know if its a problem of my scaling algorithm or its a problem of my repainting algorithm. Andreas Am 17.01.2011 21:06, schrieb Denis Auroux: > That's because the whole PDF backgrounds stay in RAM in the current > version. What worries me with your approach is not the PDF backgrounds > but the actual things you draw on top. > > A page of my handwriting is about 50000 line segments, and if you are > at 10x zoom level for some reason or other, the page to be rendered > can become a bitmap of size of the order of 10000 x 7000, in which you > have to draw a lot of anti-aliased line segments (which, at such a > zoom level, tend to be pretty thick too). No way that any library can > do this in real time. So what happens when you're drawing a stroke on > a page that already has a lot of notes, and the display needs to be > updated in real time to reflect what you are drawing? > > Zooming in, and being able to draw at high zoom levels with a good > refresh rate, is the reason why I think you really need to be able to > refresh only a small part of the page, and selectively send only the > items in that part of the page to cairo to process. > > Denis > ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ Xournal-devel mailing list Xournal-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xournal-devel