|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.util.ImageParameters
public class ImageParameters
This contains all of the image parameters for in inlined image.
Constructor Summary | |
---|---|
ImageParameters()
Constructor. |
|
ImageParameters(COSDictionary params)
Constructor. |
Method Summary | |
---|---|
int |
getBitsPerComponent()
The bits per component of this image. |
PDColorSpace |
getColorSpace()
This will get the color space or null if none exists. |
PDColorSpace |
getColorSpace(Map colorSpaces)
This will get the color space or null if none exists. |
COSDictionary |
getDictionary()
This will get the dictionary that stores the image parameters. |
List |
getFilters()
This will get the list of filters that are associated with this stream. |
int |
getHeight()
The height of this image. |
int |
getWidth()
The width of this image. |
void |
setBitsPerComponent(int bpc)
Set the number of bits per component. |
void |
setColorSpace(PDColorSpace cs)
This will set the color space for this image. |
void |
setFilters(List filters)
This will set the filters that are part of this stream. |
void |
setHeight(int h)
Set the height of the image. |
void |
setWidth(int w)
Set the width of the image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ImageParameters()
public ImageParameters(COSDictionary params)
params
- The image parameters.Method Detail |
---|
public COSDictionary getDictionary()
public int getBitsPerComponent()
public void setBitsPerComponent(int bpc)
bpc
- The number of bits per component.public PDColorSpace getColorSpace() throws IOException
IOException
- If there is an error getting the colorspace.public PDColorSpace getColorSpace(Map colorSpaces) throws IOException
colorSpaces
- The ColorSpace dictionary from the current resources, if any.
IOException
- If there is an error getting the colorspace.public void setColorSpace(PDColorSpace cs)
cs
- The color space for this image.public int getHeight()
public void setHeight(int h)
h
- The height of the image.public int getWidth()
public void setWidth(int w)
w
- The width of the image.public List getFilters()
public void setFilters(List filters)
filters
- The filters that are part of this stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |