Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Problem with offset
Re: Problem with offset [message #14766 is a reply to message #14763] |
Thu, 13 March 2008 18:37 |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
I was bored and curious, so I thought I'd have a go at doing this with just a StringBuffer (well, two actually) and XmlTags. It's not too complicated, and the results are identical to your version (I'm not sure if I fixed the offset bug correctly or not though). I've attached the results in case they are of interest.
To finish it you would need to add a stack of Rects to allow retrieval of the clipping/offset area, but I have no idea how that works so I haven't bothered . Ideally you don't really want to use XmlTag either, since this forces a DeXml call on every attribute but it makes the code simpler.
If you are worried about being able to change it on the fly, couldn't you just convert the final string into an Xml tree and then modify it? There is no interface in Draw to allow modification of previous elements anyway.
EDIT: I stupidly uploaded versions of the files that didn't compile. Fixed now.
-
Attachment: SvgDraw.h
(Size: 2.35KB, Downloaded 391 times)
-
Attachment: SvgDraw.cpp
(Size: 7.71KB, Downloaded 669 times)
[Updated on: Thu, 13 March 2008 19:42] Report message to a moderator
|
|
|
|
|
Problem with offset
By: kodos on Thu, 06 March 2008 22:41
|
|
|
Re: Problem with offset
By: kodos on Sat, 08 March 2008 15:13
|
|
|
Re: Problem with offset
By: mirek on Sat, 08 March 2008 17:24
|
|
|
Re: Problem with offset
By: kodos on Sat, 08 March 2008 19:28
|
|
|
Re: Problem with offset
By: mirek on Wed, 12 March 2008 17:13
|
|
|
Re: Problem with offset
By: mirek on Wed, 12 March 2008 17:59
|
|
|
Re: Problem with offset
By: kodos on Wed, 12 March 2008 18:17
|
|
|
Re: Problem with offset
By: mirek on Wed, 12 March 2008 19:06
|
|
|
Re: Problem with offset
|
|
|
Re: Problem with offset
By: mirek on Wed, 12 March 2008 21:23
|
|
|
Re: Problem with offset
|
|
|
Re: Problem with offset
By: kodos on Thu, 13 March 2008 16:09
|
|
|
Re: Problem with offset
By: mirek on Thu, 13 March 2008 18:22
|
|
|
Re: Problem with offset
By: mrjt on Thu, 13 March 2008 18:37
|
|
|
Re: Problem with offset
By: kodos on Thu, 13 March 2008 18:57
|
|
|
Re: Problem with offset
By: mirek on Sat, 15 March 2008 14:34
|
|
|
Re: Problem with offset
By: kodos on Sat, 15 March 2008 18:19
|
Goto Forum:
Current Time: Sat May 04 17:54:33 CEST 2024
Total time taken to generate the page: 0.03005 seconds
|