Re: Draw a scaled arrow



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
.



Relevant Pages

  • Re: Draw a scaled arrow
    ... 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 ... and still the thickness of the line did not seem to scale either. ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.programmer)
  • Re: damage scales
    ... their damage scale meant that an attack causing 6 points ... personal scale. ... Oh, certainly, multiplying is generally easy, but if you've got two ... reality, then what I might want reality to be in my games. ...
    (rec.games.frp.gurps)
  • [Slightly OT] Dealing with fractions of cents
    ... functions includes reading a weight from a scale and then multiplying ... that weight by a UnitPrice to get an amount. ... The scale returns its weight in pounds to 3 decimal places. ... Inevitably on printed reports, sometimes the sums of the values are off ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: [Slightly OT] Dealing with fractions of cents
    ... functions includes reading a weight from a scale and then multiplying ... that weight by a UnitPrice to get an amount. ... The scale returns its weight in pounds to 3 decimal places. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Another linear to db question
    ... > you want is just an expanded scale. ... > everything below -20, and expand ... > by multiplying by 96/20 or whatever. ... You would have to play with the math a little ...
    (microsoft.public.win32.programmer.mmedia)