|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.pobjects.graphics.ImageReference
org.icepdf.core.pobjects.graphics.CachedImageReference
org.icepdf.core.pobjects.graphics.ImageStreamReference
public class ImageStreamReference
The ImageStreamReference class is a rudimentary Image Proxy which will try and decode the image data into an Buffered image using a worker thread. The intent is that the content parser will continue parsing the content stream while the worker thread handles the image decode work. However the drawImage method will block until the worker thread returns. So generally put not a true image proxy but we do get significantly faster load times with the current implementation.
| Field Summary |
|---|
| Fields inherited from class org.icepdf.core.pobjects.graphics.ImageReference |
|---|
fillColor, futureTask, image, imageStream, reference, resources, useProxy |
| Constructor Summary | |
|---|---|
protected |
ImageStreamReference(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 |
|---|
protected ImageStreamReference(ImageStream imageStream,
java.awt.Color fillColor,
Resources resources)
| Method Detail |
|---|
public int getWidth()
getWidth in class ImageReferencepublic int getHeight()
getHeight in class ImageReferencepublic java.awt.image.BufferedImage call()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||