bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/24023] New: java.awt.Image.getScaledInstance not implemented


From: WBaer at gmx dot de
Subject: [Bug awt/24023] New: java.awt.Image.getScaledInstance not implemented
Date: 22 Sep 2005 21:21:12 -0000

Hi all,

java.awt.Image.getScaledInstance is not completely implemented. 

The following two scale flag cases are not implemented:
case SCALE_SMOOTH:
case SCALE_AREA_AVERAGING:
default:
  throw new Error("not implemented");

This is done quickly however the needed classes 
java/awt/image/ReplicateScaleFilter and
java/awt/image/AreaAveragingScaleFilter are only
stub classes.

This causes the startup error for JUMP. A simple 
workaround is to use the other scale flag types
until the classes are properly implemented:

switch (flags)
  {
    case SCALE_DEFAULT:
    case SCALE_FAST:
    case SCALE_REPLICATE:
    case SCALE_SMOOTH: 
       // FIXME Implement java/awt/image/ReplicateScaleFilter
    case SCALE_AREA_AVERAGING: 
      // FIXME Implement java/awt/image/AreaAveragingScaleFilter
      ImageProducer producer =
        new FilteredImageSource(this.getSource(),
            new ReplicateScaleFilter(width, height));
      return Toolkit.getDefaultToolkit().createImage(producer);     
    }

Wolfgang

-- 
           Summary: java.awt.Image.getScaledInstance not implemented
           Product: classpath
           Version: 0.18
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: awt
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: WBaer at gmx dot de
                CC: bug-classpath at gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24023




reply via email to

[Prev in Thread] Current Thread [Next in Thread]