This is interesting.

Last time I checked the .ora file (it's just a zip file, so you can
see it yourself), I seem to remember seeing the stroke info saved to
file. If true, this means that "vectorized" data is already saved.

I also believe the main problem would be performance, but only when
changing zoom levels or panning, since this would be what triggers a
"Render Tile" operation. Cache techniques could be used. With some
work, it could be possible to enable painting while still rendering
tiles on low priority threads to avoid stuttering while painting.

I'm not sure this would be simple at all, even though it may seem like
it at first sight...

- You'll have to somehow get a list of only the interesting strokes
for the current canvas view, otherwise each time you zoom in / pan, it
will be VERY slow on complex paintings
- You'll also have to deal with bitmaps for .ora files that don't have
mypaint-specific vector info
- If the brush behaviour changes in mypaint, an ORA file will look
different when re-rendering
- You'll have to make sure the brushlib behaviour is deterministic

-- 
Micael Dias

_______________________________________________
Mypaint-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/mypaint-discuss

Reply via email to