2 Replies Latest reply on Dec 8, 2008 7:26 AM by James Newton, ACP

    Image.draw() lineSize fails on horizontal/vertical lines

    Level 7
      Is there any good way to get around the fact that the imaging lingo draw()
      function with #lineSize > 1 fails when the line is either near-horizontal or
      near-vertical? It works at every other angle, but when the difference
      between top and bottom or left and right is less than the lineSize, you end
      up with a thinner line, as small as 1 pixel for perfect horizontal/vertical,
      regardless of how high you set the #lineSize. I've been fudging it by
      forcing one end of the line to move if the values are too close, but this
      ends up sacrificing accuracy, and the line doesn't always end up where you
      want it. And before anyone says anything, no I can't replace it with a rect
      of some sort, because I don't know the angle of the line ahead of time, and
      have to account for all possibilities.