comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » data coordinates thickness
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
data coordinates thickness [message #90275] Wed, 18 February 2015 07:46 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
Hi,
I'm drawing objects (polygon(), ellipse(), polyline()) on an image. The image has a specific data coordinates.
I *assume* that the thickness of a line is defined in device coordinates. Is there a way to get the thickness of a line in data coordinates?
Of course an approximation would be enough.

One way, would be to use the ConvertCoord method as such:

zero = obj->ConvertCoord(0, 0, /data, /to_device)
one = obj->ConvertCoord(dataThickness, 0, /data, /to_device)
deviceThickness = one[0]-zero[0]

The assumption behind this is that the thickness is drawn in device coordinates. I guess this might be true for non zero values of the thickness (hairline) and maybe even for thicknesses of 1.

Can anybody confirm or correct the above statements?

Thanks,
Helder
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: clear the work bench
Next Topic: Re: Downgrade in support for non US users?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:32:58 PDT 2025

Total time taken to generate the page: 0.00387 seconds