JDK-4886433 : Images not rendered properly when scale, shear or rotate is set - Linux
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2003-07-04
  • Updated: 2003-09-05
  • Resolved: 2003-09-05
Related Reports
Duplicate :  
Description
In 1.4 when method scale(sx, sy) is invoked with either sx or sy as negative,
the image is not rendered properly. But its rendered if the scale is set to
(1.0, -1.0) or (-1.0, 1.0). It works fine when both sx and sy are positive 
values.

In 1.3.1 the image is rendered fine for all values of sx and sy except
for (1.0, -1.0) and (-1.0, 1.0)

------------------------------------------------------------------------------

In 1.4 shear image is rendered fine only if shx and shy is 0 (no shear). 
For all other values the image is not rendered properly. This works fine 
for all values in 1.3.1

------------------------------------------------------------------------------

In 1.4 rotate image is rendered fine only if angle in degrees is 0 or 360.
For all other values the image is not rendered properly. It works fine 
in 1.3.1 for all values.

All the above behaviours are specific to Linux. Works fine in all other
platforms.

The above mentioned behaviours can be seen in Java2Demo - Transforms.SelectTx
demo. The painting.gif image is not rendered properly if the image is scaled
towards left (negative). For shear and rotate, its always not rendered 
properly except when there is no changed introduced by shear or rotate.

1) Copy image.jpg and GraphicsTransformTest.java to one directory
2) Compile and run GraphicsTransformTest
3) Select Scale radio button
4) Change the scrollbars so as to set different sx and sy
5) Select Shear radio button
6) Change the scrollbars to set different shx and shy
7) Select Rotate radion button
8) Change the second horizontal scrollbar to set different angles

Attached here with is the screenshots of different output. The expected
output is got by running the same program in 1.3.1

Comments
EVALUATION This is actually a known issue with 16-bit depth in general (on Windows too, not just Linux). Closing this as a duplicate of 4507322. ###@###.### 2003-09-04
04-09-2003