org.icepdf.core.pobjects.graphics
Class SmoothScaledImageReference

java.lang.Object
  extended by org.icepdf.core.pobjects.graphics.ImageReference
      extended by org.icepdf.core.pobjects.graphics.CachedImageReference
          extended by org.icepdf.core.pobjects.graphics.SmoothScaledImageReference
All Implemented Interfaces:
java.util.concurrent.Callable<java.awt.image.BufferedImage>

public class SmoothScaledImageReference
extends CachedImageReference

The SmoothScaledImageReference scales large images using the bufferedImage.getScaledInstance() method for colour imges and the a custom trilinear scale for black and white images. The scaled instance uses a minimum of memory and can improve clarity of some CCITTFax images.

Since:
5.0

Field Summary
 
Fields inherited from class org.icepdf.core.pobjects.graphics.ImageReference
fillColor, futureTask, image, imageStream, reference, resources, useProxy
 
Constructor Summary
protected SmoothScaledImageReference(ImageStream imageStream, java.awt.Color fillColor, Resources resources)
           
 
Method Summary
 java.awt.image.BufferedImage call()
           
 int getHeight()
           
 int getWidth()
           
 
Methods inherited from class org.icepdf.core.pobjects.graphics.CachedImageReference
getImage
 
Methods inherited from class org.icepdf.core.pobjects.graphics.ImageReference
createImage, drawImage, getImageStream, isImage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmoothScaledImageReference

protected SmoothScaledImageReference(ImageStream imageStream,
                                     java.awt.Color fillColor,
                                     Resources resources)
Method Detail

getWidth

public int getWidth()
Specified by:
getWidth in class ImageReference

getHeight

public int getHeight()
Specified by:
getHeight in class ImageReference

call

public java.awt.image.BufferedImage call()