public class SamplingFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
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 int |
highAndSharpen
(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 boolean |
kernelSharpen |
static int |
medium
medium will make sure images larger than page are reduced in size (often large scanned tiffs)
|
static int |
mediumAndSharpen
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 and Description |
|---|
SamplingFactory() |
| Modifier and Type | Method and Description |
|---|---|
static double[][] |
getSharpenKernel() |
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(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" |
static void |
setSharpenKernel(double[][] userKernel)
allow user to over-ride default setting and set their own
3x3 kernel to sharpen down-sampled images
|
public static int none
public static final int medium
public static final int high
public static final int print_enable
public static final int print_disable
public static final int mediumAndSharpen
public static final int highAndSharpen
public static int downsampleLevel
public static boolean isPrintDownsampleEnabled
public static boolean kernelSharpen
public static void setDownsampleMode(String newLevel)
newLevel - A String value of image sampling strategiespublic static void setDownsampleMode(int newLevel)
newLevel - A String value of image sampling strategiespublic static void setSharpenKernel(double[][] userKernel)
userKernel - public static double[][] getSharpenKernel()
Copyright © 2017. All rights reserved.