Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8157938

RFE: AffineTransform.getScalingFactorX()/getScalingFactorY()

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 9
    • client-libs
    • None
    • 2d
    • generic
    • generic

      It seems the existing getScaleX/getScaleY method in AffineTransform.java only returns the m00/m11 element of the 3x3 affine transformation matrix which controls the contribution of input X coordinates to the output X coordinates.
      This value is not the entire scaling factor applied to X coordinates since it ignores any contribution from the input Y coordinates under rotations
      We need to use
      {getScalingFactorX} to compute how much X coordinates are stretched or contracted by the full transformation matrix.

            psadhukhan Prasanta Sadhukhan
            psadhukhan Prasanta Sadhukhan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: