Linewidth of a graphic not working correct

Dar Scott dsc at swcp.com
Thu Jul 17 16:28:01 EDT 2003


On Wednesday, June 11, 2003, at 01:56 AM, tkuypers at pandora.be wrote:

> When changing the bordersize from an odd number to even, you the right 
> and
> bottom of this object are not set correctly, the line gets thicker, 
> but is 1
> pixels smaller than the actual rect... So, using a borderwidth of 1, 
> 3, 5,
> etc. works the way it is supposed to do, but 2, 4, 6, etc. gives a 
> visual
> discrepancy...)
>
> This makes it impossible to create exact images :-(

In a discussion on this issue, Scott Raney suggested the use of the 
borderWidth property as a workaround for rectangles.

I think this will work OK for rectangles on both Windows and OS X.  Set 
your lineSize to 0.  That is the size on the first page of the object 
inspector.  Set showBorder to true.  Set threeD to false.  Set the 
border size with borderWidth.

You may need to experiment with how that might apply to other objects.

(The meaning of the graphic properties of Revolution objects seems to 
be essentially a set of calls to the OS drawing API, the meaning of 
which--in terms of parameter meaning and rendering meanings--will vary 
slightly from platform to platform.  I don't expect this to change.)

Dar Scott




More information about the use-livecode mailing list