Am 02.08.2008, 10:34 Uhr, schrieb Christoffer Sørensen <[EMAIL PROTECTED]>:
>> By the way, what are you using it for? I like to know. > > I would like to build a block diagram editor with ports and lines > between the blocks. I don't anticipate many objects, so high quality > output with anti aliasing is more important than performance. The new float canvas will output with higher quality than the last one, mainly due to antialiasing (and things like gradient fills). Performance is not too bad right now, too. > Ideally I would also like to load a SVG directly since I find it > easier to draw an image in inkscape than to build my image by hand. > However, I know that is not supported by floatcanvas. We were thinking about svg import/export recently. I think a full fledged svg import is too complex to add for now, because it requires a rather complex parser. If the svg files are kept very simple though, it should be possible to import in most cases with the help of a simple parser. Right now it seems like I don't have time to implement this feature as part of SoC, but it should be straightforward to do yourself once fc2 is out. Are you interested only in svg import or also in svg export? Export is easier to do for us than import, so if the interest is high enough, I'll try to take a stab at it. > (persistance is not necessary for my project. I will just save the > coordinates of my objects) Ok. > Thank you. I know about the google soc; right now I'm waiting for that > to finish to see how floatcanvas turns out. > > Will anti aliasing and hit testing work at the same time in the future? Basically yes. Right now there are two modes. One is for "coarse" testing and uses bounding boxes. Then there's a finer method which tests whether the hit point is in the "path" of an object. Things like polygons, ellipses etc. have a path object, the only objects that don't have a path are bitmaps and fonts. The current method does not take the alpha value at the hit pixel into account. On the one hand this allows for easy selection of (nearly) completely transparent object, on the other hand you might want a different behaviour (NOT selecting the object if the alpha value at the hit point is below X). What would be your default way of using fc? Taking the alpha value at the pixel into account or not? -Matthias _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
