JDK-5107713 : REGRESSION: Bug 5073407 also applies to grayscale images
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 5.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-09-27
  • Updated: 2004-09-29
  • Resolved: 2004-09-29
Related Reports
Duplicate :  
Description

Name: jl125535			Date: 09/27/2004


A DESCRIPTION OF THE PROBLEM :
The fix cited in bug # 5073407 must be included in the 1.5 release, otherwise no imaging application works.

Using drawImage when the current graphics context contains a scaling transform is SEVERAL orders of magnitude slower than 1.4.2.

Before, smooth scrolling, now the scrolling is unusable. It is not just the TYPE_3BYTE_BGR images as identified in bug # 5073407, it is also grayscale images.

Grayscale images are required for 'smooth' document imaging applications.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Use the test case from bug # 5073407.  Change one line as follows:

//        Img = new BufferedImage(1697, 2003, BufferedImage.TYPE_3BYTE_BGR);
        Img = new BufferedImage(1697, 2003, BufferedImage.TYPE_BYTE_GRAY);


ACTUAL -
moving the slider bar is extremey slow.  Run exact code under 1.4.2 and it is extremely FAST.

REPRODUCIBILITY :
This bug can be reproduced always.

Release Regression From : 1.4.2
The above release value was the last known release where this 
bug was known to work. Since then there has been a regression.

(Incident Review ID: 311677) 
======================================================================

Comments
EVALUATION The fix for 5073407 was not format specific so all image types should have been fixed at the same time when it was fixed. To be sure, the proposed change was made to the test case in 5073407 and the gray scale images showed the same performance after the fix as they did in 1.4.2... ###@###.### 2004-09-28
28-09-2004