I implemented box fill on my fork of Xournal: https://github.com/ezyang/xournal/commits/master It's a bit of a hack, but boxes are easy to draw and I wanted something immediately. A marginal improvement would be arbitrary polygons. However...
You can't just "add fill-in" to rectangles and circles, because internally they're not represented that way; they're just strokes. Now, you could add a notion of closed stroke and then apply fill-in to the path, but you still need a bit of extra code to deal with what you do if you try to erase parts of the stroke now. (It's doable, but fiddly). Edward Excerpts from dmg's message of 2014-03-24 17:21:39 -0700: > On Mon, Mar 24, 2014 at 4:54 PM, <romanoc...@rgtti.com> wrote: > > On 2014-03-23 15:51, Denis Auroux wrote: > >> Hi Gerhard, > >> > >> Thanks for all the very good suggestions for how to make xournal > >> competent at precision technical drawing. As you have probably noticed, > >> the initial focus was very much on quickly jotting handwritten notes, > >> i.e. the model is NOT drafting machines but rather something much > >> simpler: pencil and paper. > >> > > > > I basically agree with Denis. One thing that I miss a lot, anyway, is > > the ability to create *filled* rectangles and circles... or it's me that > > can't make my mind around how doing it? > > > > Romano > > I want the same feature too. Denis, what do you think is the best way > to implement this? Just add an "fill-in" flag and > fill any polygon created (including non-rectangles/circles)? or be > more specific and only fill rectangles and circles? > > > --dmg > > -- > --dmg > > --- > Daniel M. German > http://turingmachine.org > ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Xournal-devel mailing list Xournal-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xournal-devel