Re: Draw a scaled arrow
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 19 May 2008 17:03:45 GMT
On Sun, 18 May 2008 15:52:25 +0100, RichT <someone@xxxxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :
1. Drawing the arrow so that it is scaled on to the canvas when I tried
multiplying by a scale factor of 1.5 various combinations produced
either a distorted arrow head or a line and arrow head that were drawn
in different places, and still the thickness of the line did not seem to
scale either.
The trick is to move the origin to the root of the arrow with a
transform before you apply the scale.
see http://mindprod.com/jgloss/affinetransform.html
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.
- Follow-Ups:
- Re: Draw a scaled arrow
- From: RichT
- Re: Draw a scaled arrow
- From: Knute Johnson
- Re: Draw a scaled arrow
- References:
- Draw a scaled arrow
- From: RichT
- Draw a scaled arrow
- Prev by Date: Re: Enhancing java skills
- Next by Date: Re: Porting C++ Template to Java Generic
- Previous by thread: Re: Draw a scaled arrow
- Next by thread: Re: Draw a scaled arrow
- Index(es):
Relevant Pages
|