org.jpedal.images
Class SamplingFactory

java.lang.Object
  extended by org.jpedal.images.SamplingFactory

public class SamplingFactory
extends java.lang.Object


Field Summary
static int downsampleLevel
          current setting - do not set directly
static int high
          (default setting) high will agressively reduce images bigger than twice their drawn size at 100% so a image which appears as 100x100 on the PDF but whose raw images is 250x250 will be stored as 125x125 image and not a 250x250 image
static boolean isPrintDownsampleEnabled
          current setting - do not set directly
static int medium
          medium will make sure images larger than page are reduced in size (often large scanned tiffs)
static int none
          do nothing
static int print_disable
          do not use down-sampling on printing
static int print_enable
          use down-sampling on printing (which is default)
 
Constructor Summary
SamplingFactory()
           
 
Method Summary
static void setDownsampleMode(int newLevel)
          PDFs contain images which may often be much larger than the actual space they occupy and they are reduced to fit the space

alters image sampling to speed up program and reduce memory with the strategies high, medium, none, enable_printing, disable_printing
static void setDownsampleMode(java.lang.String newLevel)
          PDFs contain images which may often be much larger than the actual space they occupy and they are reduced to fit the space

alters image sampling to speed up program and reduce memory in with the strategies "high","medium", "none", "enable_printing", "disable_printing"
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

none

public static int none
do nothing


medium

public static int medium
medium will make sure images larger than page are reduced in size (often large scanned tiffs)


high

public static int high
(default setting) high will agressively reduce images bigger than twice their drawn size at 100% so a image which appears as 100x100 on the PDF but whose raw images is 250x250 will be stored as 125x125 image and not a 250x250 image


print_enable

public static int print_enable
use down-sampling on printing (which is default)


print_disable

public static int print_disable
do not use down-sampling on printing


downsampleLevel

public static int downsampleLevel
current setting - do not set directly


isPrintDownsampleEnabled

public static boolean isPrintDownsampleEnabled
current setting - do not set directly

Constructor Detail

SamplingFactory

public SamplingFactory()
Method Detail

setDownsampleMode

public static void setDownsampleMode(java.lang.String newLevel)
PDFs contain images which may often be much larger than the actual space they occupy and they are reduced to fit the space

alters image sampling to speed up program and reduce memory in with the strategies "high","medium", "none", "enable_printing", "disable_printing"


setDownsampleMode

public static void setDownsampleMode(int newLevel)
PDFs contain images which may often be much larger than the actual space they occupy and they are reduced to fit the space

alters image sampling to speed up program and reduce memory with the strategies high, medium, none, enable_printing, disable_printing