Top Fields Constructors Methods
com.openhtmltopdf.pdfboxout

public Class PdfBoxImage

extends Object
implements FSImage
Class Inheritance
All Implemented Interfaces
com.openhtmltopdf.extend.FSImage
Imports
java.io.ByteArrayInputStream, .IOException, java.util.Iterator, java.util.logging.Level, javax.imageio.ImageIO, .ImageReader, javax.imageio.stream.ImageInputStream, com.openhtmltopdf.util.LogMessageId, .XRLog, org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject, com.openhtmltopdf.extend.FSImage

Field Summary

Modifier and TypeField and Description
private byte[]
private float
private float
private final String
private PDImageXObject

Constructor Summary

AccessConstructor and Description
public
PdfBoxImage(byte[] image, String uri)

public
PdfBoxImage(byte[] bytes, String uri, float width, float height, PDImageXObject xobject)

Method Summary

Modifier and TypeMethod and Description
public void
public byte[]
public int
public String
public int
public PDImageXObject
public void
scale(int width, int height)

Implements com.openhtmltopdf.extend.FSImage.scale.

public FSImage
scaleToOutputResolution(float dotsPerPixel)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_bytesback to summary
private byte[] _bytes
_intrinsicHeightback to summary
private float _intrinsicHeight
_intrinsicWidthback to summary
private float _intrinsicWidth
_uriback to summary
private final String _uri
_xobjectback to summary
private PDImageXObject _xobject

Constructor Detail

PdfBoxImageback to summary
public PdfBoxImage(byte[] image, String uri) throws IOException
PdfBoxImageback to summary
public PdfBoxImage(byte[] bytes, String uri, float width, float height, PDImageXObject xobject)

Method Detail

clearBytesback to summary
public void clearBytes()
getBytesback to summary
public byte[] getBytes()
getHeightback to summary
public int getHeight()

Implements com.openhtmltopdf.extend.FSImage.getHeight.

Annotations
@Override
getUriback to summary
public String getUri()
getWidthback to summary
public int getWidth()

Implements com.openhtmltopdf.extend.FSImage.getWidth.

Annotations
@Override
getXObjectback to summary
public PDImageXObject getXObject()
scaleback to summary
public void scale(int width, int height)

Implements com.openhtmltopdf.extend.FSImage.scale.

Annotations
@Override
scaleToOutputResolutionback to summary
public FSImage scaleToOutputResolution(float dotsPerPixel)
setXObjectback to summary
public void setXObject(PDImageXObject xobject)