| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static BufferedImage | |
| private static Rectangle | |
| private static BufferedImage | |
| private static BufferedImage | from8bit(PDImage pdImage, WritableRaster raster, Rectangle clipped, final int subsampling, final int width, final int height)
|
| private static BufferedImage | fromAny(PDImage pdImage, WritableRaster raster, COSArray colorKey, Rectangle clipped, final int subsampling, final int width, final int height)
|
| private static float[] | |
| public static WritableRaster | Returns: the raw raster of this imageThe image to get the raw raster data from pdImage)Extract the raw unconverted raster of the given image |
| public static BufferedImage | Returns: content of this image as an RGB buffered imagethe image to read pdImage, COSArray an optional color key mask colorKey)Returns the content of the given image as an AWT buffered image with an RGB color space. |
| public static BufferedImage | Returns: content of this image as an (A)RGB buffered imagethe image to read pdImage, Rectangle The region of the source image to get, or null if the entire image is needed.
The actual region will be clipped to the dimensions of the source image. region, int The amount of rows and columns to advance for every output pixel, a value
of 1 meaning every pixel will be read. It must not be larger than the image width or height. subsampling, COSArray an optional color key mask colorKey)Returns the content of the given image as an AWT buffered image with an RGB color space. |
| public static BufferedImage | Returns: a masked image filled with the given paintthe paint to fill the visible portions of the image with paint)Returns an ARGB image filled with the given paint and using the given image as a mask. |
| private static void |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| SampledImageReader | back to summary |
|---|---|
| private SampledImageReader() | |
| applyColorKeyMask | back to summary |
|---|---|
| private static BufferedImage applyColorKeyMask(BufferedImage image, BufferedImage mask) | |
| clipRegion | back to summary |
|---|---|
| private static Rectangle clipRegion(PDImage pdImage, Rectangle region) | |
| from1Bit | back to summary |
|---|---|
| private static BufferedImage from1Bit(PDImage pdImage, Rectangle clipped, final int subsampling, final int width, final int height) throws IOException | |
| from8bit | back to summary |
|---|---|
| private static BufferedImage from8bit(PDImage pdImage, WritableRaster raster, Rectangle clipped, final int subsampling, final int width, final int height) throws IOException | |
| fromAny | back to summary |
|---|---|
| private static BufferedImage fromAny(PDImage pdImage, WritableRaster raster, COSArray colorKey, Rectangle clipped, final int subsampling, final int width, final int height) throws IOException | |
| getDecodeArray | back to summary |
|---|---|
| private static float[] getDecodeArray(PDImage pdImage) throws IOException | |
| getRawRaster | back to summary |
|---|---|
| public static WritableRaster getRawRaster(PDImage pdImage) throws IOException Extract the raw unconverted raster of the given image
| |
| getRGBImage | back to summary |
|---|---|
| public static BufferedImage getRGBImage(PDImage pdImage, COSArray colorKey) throws IOException Returns the content of the given image as an AWT buffered image with an RGB color space. If a color key mask is provided then an ARGB image is returned instead. This method never returns null.
| |
| getRGBImage | back to summary |
|---|---|
| public static BufferedImage getRGBImage(PDImage pdImage, Rectangle region, int subsampling, COSArray colorKey) throws IOException Returns the content of the given image as an AWT buffered image with an RGB color space. If a color key mask is provided then an ARGB image is returned instead. This method never returns null.
| |
| getStencilImage | back to summary |
|---|---|
| public static BufferedImage getStencilImage(PDImage pdImage, Paint paint) throws IOException Returns an ARGB image filled with the given paint and using the given image as a mask.
| |
| readRasterFromAny | back to summary |
|---|---|
| private static void readRasterFromAny(PDImage pdImage, WritableRaster raster) throws IOException | |