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

RFE: AffineTransform.getScalingFactorX()/getScalingFactorY()

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd
    • Component/s: client-libs
    • Labels:
      None
    • Subcomponent:
      2d
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated: