Imaging Options

You are viewing an old version (v. 2) of this page.
The latest version is v. 5, last edited on Jun 14, 2017 (view differences | )
<< View previous version | view page history | view next version >>

Imaging Options

The rendering core by default will preserve image quality and draw image as they were intended by the original author. The only exception to this rule will occur if the JVM does not have enough memory to load an image at which time the rendering core will try to compensate by scaling the image to a smaller size in an attempt to display the image using a smaller memory foot print.

The imaging core can be configured to scale image. Image scaling in some cases can reduce the amount of memory used by the rendering core but also results in lost image quality. The following table describes the three different types of images scaling available in the imaging core.

Summary of Image Scaling Configuration Properties.

Property Type Description
org.icepdf.core.imageReference default Image proxy implementation, no image scaling take place (Default).
org.icepdf.core.imageReference scaled Image proxy implementation but will also scale images with the intent of saving the amount of memory used to display an image. Images less then 1000 pixels are not scaled.
org.icepdf.core.imageReference mipmap Mipmap implementation and image proxy which will create a series of scaled images, isplaying the smaller version at larger zoom values and the larger image at higher zoom levels. .

Image Pool

The Image pool is a Map of the most recently used images. The pools size by default is setup to be 1/4 the heap size. So as the pool grows it will self trim to keep the memory foot print at the specified max. The max pool size can be specified by using the org.icepdf.core.views.imagePoolSize system property. The value is specified in MB.

The pool also contains an executor pool for processing Images. The executor allows the pageInitialization thread to continue while the executor processes the image data on another thread.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

© Copyright 2017 ICEsoft Technologies Canada Corp.