public class ImageParameters extends Object
Constructor and Description |
---|
ImageParameters()
Constructor.
|
ImageParameters(COSDictionary params)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
boolean |
isStencil()
Returns true if the image is a stencil mask.
|
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 |
setStencil(boolean isStencil)
Sets whether or not the image is a stencil.
|
void |
setWidth(int w)
Set the width of the image.
|
public ImageParameters()
public ImageParameters(COSDictionary params)
params
- The image parameters.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.public boolean isStencil()
public void setStencil(boolean isStencil)
ImageMask
entry in the image stream's dictionary.isStencil
- True to make the image a stencil.Copyright © 2002-2015 The Apache Software Foundation. All Rights Reserved.