|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.spire.pdf.graphics.PdfGraphicsWidget
com.spire.pdf.graphics.PdfLayoutWidget
com.spire.pdf.graphics.PdfShapeWidget
com.spire.pdf.graphics.PdfImage
public abstract class PdfImage
Represents the base class for images.
Field Summary |
---|
Fields inherited from class com.spire.pdf.graphics.PdfLayoutWidget |
---|
beginPageLayout |
Constructor Summary | |
---|---|
PdfImage()
|
Method Summary | |
---|---|
static PdfImage |
fromFile(java.lang.String path)
Creates PdfImage from a file. |
static PdfImage |
fromImage(java.awt.image.BufferedImage image)
Converts a object into a PDF image. |
static PdfImage |
fromImage(java.awt.image.BufferedImage image,
boolean convertToStream)
Converts a object into a PDF image. |
static PdfImage |
fromImage(java.lang.String fileNamePath)
|
static PdfImage |
fromStream(java.io.InputStream stream)
Creates PdfImage from stream. |
int |
getHeight()
Gets the height of the image in pixels. |
java.awt.geom.Dimension2D |
getPhysicalDimension()
Returns the size of the image in points. |
boolean |
getPngDirectToJpeg()
If True, png direct convert to Jpx and no mask. |
int |
getWidth()
Gets the width of the image in pixels. |
void |
setPngDirectToJpeg(boolean value)
If True, png direct convert to Jpx and no mask. |
Methods inherited from class com.spire.pdf.graphics.PdfShapeWidget |
---|
getBounds |
Methods inherited from class com.spire.pdf.graphics.PdfLayoutWidget |
---|
draw, draw, draw, draw, draw, draw |
Methods inherited from class com.spire.pdf.graphics.PdfGraphicsWidget |
---|
draw, draw, draw |
Constructor Detail |
---|
public PdfImage()
Method Detail |
---|
public int getHeight()
public boolean getPngDirectToJpeg()
public void setPngDirectToJpeg(boolean value)
public int getWidth()
public java.awt.geom.Dimension2D getPhysicalDimension()
This property uses HorizontalResolution and VerticalResolution for calculating the size in points.
public static PdfImage fromFile(java.lang.String path)
path
- Path to a file.
public static PdfImage fromStream(java.io.InputStream stream)
stream
- The stream.
public static PdfImage fromImage(java.awt.image.BufferedImage image)
image
- The image.
public static PdfImage fromImage(java.awt.image.BufferedImage image, boolean convertToStream)
convertToStream
- convert to stream.image
- The image.
public static PdfImage fromImage(java.lang.String fileNamePath)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |