org.icepdf.core.pobjects.graphics
Class ScaledImageReference

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.ScaledImageReference
All Implemented Interfaces:
java.util.concurrent.Callable<java.awt.image.BufferedImage>

public class ScaledImageReference
extends CachedImageReference

The ScaledImageReference stores the original image data as well as several smaller images instances which are painted at lower zoom values to improve paint speeds.

Since:
5.0

Field Summary
 
Fields inherited from class org.icepdf.core.pobjects.graphics.ImageReference
fillColor, futureTask, image, imageStream, reference, resources, useProxy
 
Constructor Summary
  ScaledImageReference(ImageReference imageReference, java.awt.Color fillColor, Resources resources, int width, int height)
           
protected ScaledImageReference(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

ScaledImageReference

protected ScaledImageReference(ImageStream imageStream,
                               java.awt.Color fillColor,
                               Resources resources)

ScaledImageReference

public ScaledImageReference(ImageReference imageReference,
                            java.awt.Color fillColor,
                            Resources resources,
                            int width,
                            int height)
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()