Thus spake "Brent Easton":
> 
> >*********** REPLY SEPARATOR ***********
> >
> >On 3/10/2006 at 12:59 PM Rodney Kinney wrote:
> >> The question is how in the developper's mind was this border supposed
> >> to be drawn?
> >> - outside of the picture?
> >> - inside the picture?
> >> - the way it is now (top & left sides in the picture, bottom & right
> >> sides outside the picture).
> >
> >The border is supposed to be drawn entirely outside the picture. The border
> >shouldn't obscure any of the actual piece. If either of you can make this
> >fix, I'll get it into the next version.
> 
> 
> You will find that if you increase the width of the border, the centre of the
>  Stroke used to draw the border is drawn over the rectangle where the 1 pixel
>  border is drawn, so the wider the border, the more of the counter is obscure
> d.
> 
> This is likely to be tricky since the counter is not necessarily rectangular 
> - The selection highlighter actually gets a Shape, zooms it and then draws th
> e shape - it isn't drawing a rectangle around a rectangular bounding box.
> 
> Rodney, once this is sorted out, my new SelectionHighlighter class will need 
> to be updated as well.

I think I know, at least in the abstract, how to solve this problem:

1) Get the bounding box of the Shape.
2) Outset the bounding box by 1px.
3) Scale a copy of the Shape to be bounded by the outset of the bounding box.

The scaled Shape is the correct border, I think. The only trick is finding
the right scale factor. I'll see about this tomorrow evening, maybe.

-- 
J.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vassalengine/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/vassalengine/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to