Re: [Lazarus] FPVectorial and TAChart

2011-06-16 Thread Alexander Klenin
(Quoted in full, since original mail apparently did not made it to the list) On Thu, Jun 16, 2011 at 21:46, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: One more thing: Your chart is upside down. It seams that you didn't think about the fact that the TCanvas and

Re: [Lazarus] FPVectorial and TAChart

2011-06-16 Thread Felipe Monteiro de Carvalho
On Thu, Jun 16, 2011 at 2:44 PM, Alexander Klenin kle...@gmail.com wrote: You are right, I did not know it. Maybe it should be mentioned in the wiki. It is, however, not quite simple. First, depending on interpretation, formula may be (ABottom - AY) or even (ABottom + ATop - AY) -- I am not

Re: [Lazarus] FPVectorial and TAChart

2011-06-16 Thread Felipe Monteiro de Carvalho
Ok, now I updated svn and it is looking better =) But the Y origin of the whole document is wrong (direction is OK now) and the text position also requires conversion ... -- Felipe Monteiro de Carvalho -- ___ Lazarus mailing list

Re: [Lazarus] FPVectorial and TAChart

2011-05-15 Thread Felipe Monteiro de Carvalho
Alexander Klenin kle...@gmail.com wrote: After fixing that, I was able to view g-code file created by TAChart back-end. However, it bears very little resemblance to the original chart :( I have been thinking more about this and it is as expected. G-Code does not support Pen, Brush, Text, Font

Re: [Lazarus] FPVectorial and TAChart

2011-04-22 Thread Felipe Monteiro de Carvalho
On Wed, Apr 20, 2011 at 7:15 AM, Alexander Klenin kle...@gmail.com wrote: 2) How to measure a text? I have done some research and it seams that in SVG this can only be done by using JavaScript inserted inside the image:

Re: [Lazarus] FPVectorial and TAChart

2011-04-22 Thread Felipe Monteiro de Carvalho
On Fri, Apr 22, 2011 at 2:55 PM, Alexander Klenin kle...@gmail.com wrote: 2) How to measure a text? [skip] I think that the best that one could do is guessing. I know. TAChart's SVG back-end already does trivial guessing. But that is the deficiency of particular back-end (SVG) -- you do

Re: [Lazarus] FPVectorial and TAChart

2011-04-21 Thread Felipe Monteiro de Carvalho
On Wed, Apr 20, 2011 at 7:15 AM, Alexander Klenin kle...@gmail.com wrote: 1) How to draw a rectangle? 3) How to draw a polygon? Now you can do this: var ADoc: TvVectorialDocument; begin ADoc.StartPath(0, 0); ADoc.AddLineToPath(100, 0); ADoc.AddLineToPath(100, 100); ADoc.AddLineToPath(0,

Re: [Lazarus] FPVectorial and TAChart

2011-04-21 Thread Felipe Monteiro de Carvalho
On Wed, Apr 20, 2011 at 1:20 PM, Alexander Klenin kle...@gmail.com wrote: I have committed my experimental code -- see fpvectorial demo in TAChart since r30400. Try changing output format to, say, DXF -- you will get SIGSEGV. This bug is in TvVectorialDocument.CreateVectorialWriter -- it does

Re: [Lazarus] FPVectorial and TAChart

2011-04-21 Thread Felipe Monteiro de Carvalho
On Thu, Apr 21, 2011 at 5:53 PM, Alexander Klenin kle...@gmail.com wrote: I added corresponging calls to fpvectorial back-end. However, it seems those calls have no effect -- all polygons are still drawn as polylines in both SVG and G-code writers. Ok. Note that SegmentWithPen is now not

Re: [Lazarus] FPVectorial and TAChart

2011-04-20 Thread Felipe Monteiro de Carvalho
On Wed, Apr 20, 2011 at 7:15 AM, Alexander Klenin kle...@gmail.com wrote: 1) How to draw a rectangle? 3) How to draw a polygon? var ADoc: TvVectorialDocument; begin ADoc.StartPath(0, 0); ADoc.AddLineToPath(100, 0); ADoc.AddLineToPath(100, 100); ADoc.AddLineToPath(0, 100);

Re: [Lazarus] FPVectorial and TAChart

2011-04-20 Thread Felipe Monteiro de Carvalho
On Wed, Apr 20, 2011 at 11:30 AM, Alexander Klenin kle...@gmail.com wrote: No idea if I want an entity, but I do need a brush :) I'll add a Polygon entity, which should be a closed polyline with brush. I need to draw a rectangle surrounding given text string. Ummm ... some research is

[Lazarus] FPVectorial and TAChart

2011-04-19 Thread Alexander Klenin
I have tried to use FPVectorial as TAChart back-end. So far, without success. I have a few questions/feature fequests, sorted approximately by decreasing importance: 1) How to draw a rectangle? 2) How to measure a text? 3) How to draw a polygon? 4) How to make FPVectorial output anything? It