Package com.itextpdf.io.image
Class ImageData
java.lang.Object
com.itextpdf.io.image.ImageData
- Direct Known Subclasses:
-
Jbig2ImageData,Jpeg2000ImageData,JpegImageData,RawImageData,WmfImageData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intIs the number of components used to encode colorspace.protected intprotected byte[]protected float[]protected booleanprotected intprotected intprotected Stringprotected floatprotected ImageDataprotected intprotected booleanprotected booleanprotected booleanprotected Longprotected ImageTypeprotected IccProfileprotected floatprotected int[]protected URLprotected floatprotected float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanChecks if image can be inlineintgetBpc()intGets the number of components used to encode colorspace.intbyte[]getData()float[]intgetDpiX()intgetDpiY()floatfloatint[]getUrl()floatgetWidth()floatbooleanbooleanbooleanbooleanisMask()booleanbooleanvoidmakeMask()voidsetBpc(int bpc) voidsetColorEncodingComponentsNumber(int colorEncodingComponentsNumber) Sets the number of components used to encode colorspace.voidsetColorTransform(int colorTransform) voidsetDecode(float[] decode) voidsetDeflated(boolean deflated) voidsetDpi(int dpiX, int dpiY) voidvoidsetHeight(float height) voidsetImageAttributes(Map<String, Object> imageAttributes) voidsetImageMask(ImageData imageMask) voidsetInterpolation(boolean interpolation) voidsetInverted(boolean inverted) voidsetProfile(IccProfile profile) voidsetRotation(float rotation) voidsetTransparency(int[] transparency) voidvoidsetWidth(float width) voidsetXYRatio(float XYRatio)
-
Field Details
-
url
-
transparency
protected int[] transparency -
originalType
-
width
protected float width -
height
protected float height -
data
protected byte[] data -
imageSize
protected int imageSize -
bpc
protected int bpc -
colorEncodingComponentsNumber
protected int colorEncodingComponentsNumberIs the number of components used to encode colorspace. -
decode
protected float[] decode -
decodeParms
-
inverted
protected boolean inverted -
rotation
protected float rotation -
profile
-
dpiX
protected int dpiX -
dpiY
protected int dpiY -
colorTransform
protected int colorTransform -
deflated
protected boolean deflated -
mask
protected boolean mask -
imageMask
-
interpolation
protected boolean interpolation -
XYRatio
protected float XYRatio -
filter
-
imageAttributes
-
mySerialId
-
-
Constructor Details
-
ImageData
-
ImageData
-
-
Method Details
-
isRawImage
public boolean isRawImage() -
getUrl
-
setUrl
-
getTransparency
public int[] getTransparency() -
setTransparency
public void setTransparency(int[] transparency) -
isInverted
public boolean isInverted() -
setInverted
public void setInverted(boolean inverted) -
getRotation
public float getRotation() -
setRotation
public void setRotation(float rotation) -
getProfile
-
setProfile
-
getDpiX
public int getDpiX() -
getDpiY
public int getDpiY() -
setDpi
public void setDpi(int dpiX, int dpiY) -
getColorTransform
public int getColorTransform() -
setColorTransform
public void setColorTransform(int colorTransform) -
isDeflated
public boolean isDeflated() -
setDeflated
public void setDeflated(boolean deflated) -
getOriginalType
-
getColorEncodingComponentsNumber
public int getColorEncodingComponentsNumber()Gets the number of components used to encode colorspace.- Returns:
- the number of components used to encode colorspace
-
setColorEncodingComponentsNumber
public void setColorEncodingComponentsNumber(int colorEncodingComponentsNumber) Sets the number of components used to encode colorspace.- Parameters:
-
colorEncodingComponentsNumber- the number of components used to encode colorspace
-
getData
public byte[] getData() -
canBeMask
public boolean canBeMask() -
isMask
public boolean isMask() -
getImageMask
-
setImageMask
-
isSoftMask
public boolean isSoftMask() -
makeMask
public void makeMask() -
getWidth
public float getWidth() -
setWidth
public void setWidth(float width) -
getHeight
public float getHeight() -
setHeight
public void setHeight(float height) -
getBpc
public int getBpc() -
setBpc
public void setBpc(int bpc) -
isInterpolation
public boolean isInterpolation() -
setInterpolation
public void setInterpolation(boolean interpolation) -
getXYRatio
public float getXYRatio() -
setXYRatio
public void setXYRatio(float XYRatio) -
getImageAttributes
-
setImageAttributes
-
getFilter
-
setFilter
-
getDecodeParms
-
getDecode
public float[] getDecode() -
setDecode
public void setDecode(float[] decode) -
canImageBeInline
public boolean canImageBeInline()Checks if image can be inline- Returns:
- if the image can be inline
-