| Package | Description |
|---|---|
| org.sejda.sambox.pdmodel | |
| org.sejda.sambox.pdmodel.graphics.image |
| Modifier and Type | Method and Description |
|---|---|
COSName |
PDResources.add(PDImageXObject image)
Adds the given image to the resources of the current page and returns the name for the new resources.
|
void |
PDPageContentStream.drawImage(PDImageXObject image,
float x,
float y)
Draw an image at the x,y coordinates, with the default size of the image.
|
void |
PDPageContentStream.drawImage(PDImageXObject image,
float x,
float y,
float width,
float height)
Draw an image at the x,y coordinates, with the given size.
|
void |
PDPageContentStream.drawImage(PDImageXObject image,
Matrix matrix,
PDExtendedGraphicsState state)
Draw an image at the origin with the given transformation matrix.
|
| Modifier and Type | Method and Description |
|---|---|
static PDImageXObject |
CCITTFactory.createFromFile(File file)
Creates a new CCITT Fax compressed Image XObject from the first page of a TIFF file.
|
static PDImageXObject |
PDImageXObject.createFromFile(File file) |
static PDImageXObject |
JPEGFactory.createFromFile(File file)
Creates a new JPEG Image XObject from an input stream containing JPEG data.
|
static PDImageXObject |
CCITTFactory.createFromFile(File file,
int number)
Creates a new CCITT Fax compressed Image XObject from the first page of a TIFF file.
|
static PDImageXObject |
PDImageXObject.createFromFile(String imagePath) |
static PDImageXObject |
CCITTFactory.createFromImage(BufferedImage image)
Creates a new CCITT group 4 (T6) compressed image XObject from a b/w BufferedImage.
|
static PDImageXObject |
LosslessFactory.createFromImage(BufferedImage image)
Creates a new lossless encoded image XObject from a BufferedImage.
|
static PDImageXObject |
JPEGFactory.createFromImage(BufferedImage image)
Creates a new JPEG Image XObject from a Buffered Image.
|
static PDImageXObject |
JPEGFactory.createFromImage(BufferedImage image,
float quality)
Creates a new JPEG Image XObject from a Buffered Image and a given quality.
|
static PDImageXObject |
JPEGFactory.createFromImage(BufferedImage image,
float quality,
int dpi)
Creates a new JPEG Image XObject from a Buffered Image, a given quality and DPI.
|
static PDImageXObject |
CCITTFactory.createFromSeekableSource(org.sejda.io.SeekableSource source) |
static PDImageXObject |
JPEGFactory.createFromSeekableSource(org.sejda.io.SeekableSource source) |
static PDImageXObject |
CCITTFactory.createFromSeekableSource(org.sejda.io.SeekableSource source,
int number) |
static PDImageXObject |
PDImageXObject.createFromSeekableSource(org.sejda.io.SeekableSource source,
String filename) |
static PDImageXObject |
PDImageXObject.createThumbnail(COSStream cosStream)
Creates a thumbnail Image XObject from the given COSBase and name.
|
PDImageXObject |
PDImageXObject.getMask()
Returns the Mask Image XObject associated with this image, or null if there is none.
|
PDImageXObject |
PDImageXObject.getSoftMask()
Returns the Soft Mask Image XObject associated with this image, or null if there is none.
|
Copyright © 2020 sejda. All rights reserved.