JDK-4200154 : No difference between BILINEAR and BICUBIC interpolation methods
  • Type: Enhancement
  • Status: Resolved
  • Resolution: Fixed
  • Component: client-libs
  • Sub-Component: 2d
  • Priority: P4
  • Affected Version: 1.2.0,1.4.0
  • OS: windows_nt,windows_2000
  • CPU: x86
  • Submit Date: 1998-12-30
  • Updated Date: 2017-05-16
  • Resolved Date: 2003-08-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
Other
5.0 tigerResolved
Related Reports
Duplicate :  
Description
Setting the RenderingHints KEY_INTERPOLATION to BILINEAR or BICUBIC produces the 
exact same output, as illustrated by the following code segment. Test has been run with several types of images, from graphics (e.g. Duke image) to photos.

      BufferedImage bilinear = new BufferedImage(2*w, 2*h,
BufferedImage.TYPE_INT_RGB);
      BufferedImage bicubic = new BufferedImage(2*w, 2*h,
BufferedImage.TYPE_INT_RGB);

      Graphics2D bg = bilinear.createGraphics();
      bg.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
RenderingHints.VALUE_INTERPOLATION_BILINEAR);
      bg.scale(2, 2);
      bg.drawImage(duke, 0, 0, null);
      bg.dispose();

      bg = bicubic.createGraphics();
      bg.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
RenderingHints.VALUE_INTERPOLATION_BICUBIC);
      bg.scale(2, 2);
      bg.drawImage(duke, 0, 0, null);
      bg.dispose();

      for(int i=0; i<2*w; i++)
 for(int j=0; j<2*h; j++)
   if(bilinear.getRGB(i, j) != bicubic.getRGB(i, j))
     System.out.println("Interpolation algo differ");


Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: tiger FIXED IN: tiger INTEGRATED IN: tiger tiger-b16
2004-06-14

EVALUATION We currently have a hint for bicubic but no support in the code for it. jeannette.hung@Eng 2001-06-27 Added AffineTransformOp.TYPE_BICUBIC constant. We are now honoring the BICUBIC RenderingHint in our image pipeline as well. ###@###.### 2003-08-06
2001-06-27