Re: quality of lines drawing

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Dec 22 1999 - 23:38:58 MET


Hi Dmitri,
Your two pictures are the result of two different drawing
algorithms. In one case (df.gif), you are drawing long lines.
In evd.gif (generated by Root graphics) you seem to generate
plenty of short lines with a bias for the computation
of the starting and/or ending position.
If you draw a long line with Root with the same angle,
you will get the same line quality than in df.gif.
My guess is that the same output on Postscript should also be 
of bad quality.
Could you send me a stand alone macro that I could use
to understand how you generate the calls to the Root low level
graphics primitives ?

Rene Brun


On Wed, 22 Dec 1999, Dmitri Litvintsev wrote:

> 
> 
> Hi Rene, 
> 
> Would you say that both pictures are identical as far as line 
> quality is concerned? (evd.gif - produced by ROOT, df.gif - CDF 
> Run I event display). Probably they are...
> 
> 
> Dmitri Litvintsev
> 
> 
> 
> On Wed, 22 Dec 1999, Rene Brun wrote:
> 
> > 
> > Hi Dmitri,
> > I am afraid that this has nothing to do with Root graphics,
> > but simply reflects the property of the screen resolution.
> > This is called "stair-case effect" and it is particulaly apparent
> > when you draw nearly vertical or horizontal lines.
> > 
> > Rene Brun
> > 
> > 
> > On Tue, 21 Dec 1999, Dmitri Litvintsev wrote:
> > 
> > > 
> > > 
> > > Hi Rooters, 
> > > 
> > > Diagonal lines in Canvas are drawn as a sequence of little 
> > > segments resulting in rather crude picture. 
> > > 
> > > Is there any way to get smooth straight diagonal line?
> > > 
> > > Dmitri Litvintsev
> > > 
> > > /----------------------------------------------------------\
> > > | Tel:       (630) 840 5005                                |  
> > > | FAX:       (630) 840 2968                                |      
> > > | office:    169-E CDF Trailers                            |
> > > | E-mail:    litvinse@fnal.gov                             |
> > > \----------------------------------------------------------/
> > > 
> > > 
> > > 
> > > 
> > 



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:44 MET