Hi David,

> Interesting!  I've been thinking about the same thing in the last couple 
> of weeks, and I'm currently studying a Computer Graphics textbook to 
> learn some more about the algorithms for line drawing, scanline 
> conversion, anti-aliasing, color composition, etc.  So I'd be interested 
> to help out on this.

Great!

> Do you have any technical information about creating stroked shapes?  I 
> couldn't find anything yet...

Not really. I think I could do some algorithm by following the original
path and do some vector algebra on it. But it seems that Sven already
did a lot of work on this:

http://www.qc.physto.se/~sven/strokes.png


> On fonts (which you didn't mention) I remember there was also some prior 
> work, which I think could be useful here:
> 
> http://www.brawer.ch/software/fonts/

Cool! Yeah fonts might be a little problem. As far as I understand from
the API docs, fonts are basically also rendered as shapes (a GlyphVector
returns shapes for each character). But how do we get the shapes into
the memory ..? I think Sascha's work might be a good start.

The third big problem will be images. But at the moment I don't want to
think too far. The problem that I will work on next is efficient filling
of (arbitrary) shapes. afaics, most java2d operations boil down to
filling shapes (either by calling fillXXX() or by calling drawXX(),
which will also end up filling a shape - the stroked shape. I found some
interesting articles on that:

http://www.codeproject.com/gdi/QuickFill.asp
http://www.student.kuleuven.ac.be/~m0216922/CG/floodfill.html

So we should get Sascha and Sven to check in their works and see what we
can do from there. When we have these pieces in, we should already be
able to actually draw something. :-)

> This could be fun...

Yeah, I hope so. We have almost done the Swing thing, now let's move on
with Java2D :-D

Cheers, Roman

-- 
“Improvement makes straight roads, but the crooked roads, without
Improvement, are roads of Genius.” - William Blake

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to