Package com.itextpdf.io.image
Class GifImageData
- java.lang.Object
-
- com.itextpdf.io.image.GifImageData
-
public class GifImageData extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]dataprivate java.util.List<ImageData>framesprivate floatlogicalHeightprivate floatlogicalWidthprivate java.net.URLurl
-
Constructor Summary
Constructors Modifier Constructor Description protectedGifImageData(byte[] data)protectedGifImageData(java.net.URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddFrame(ImageData frame)protected byte[]getData()java.util.List<ImageData>getFrames()floatgetLogicalHeight()floatgetLogicalWidth()protected java.net.URLgetUrl()(package private) voidloadData()Load data by URL.voidsetLogicalHeight(float logicalHeight)voidsetLogicalWidth(float logicalWidth)
-
-
-
Field Detail
-
logicalHeight
private float logicalHeight
-
logicalWidth
private float logicalWidth
-
frames
private java.util.List<ImageData> frames
-
data
private byte[] data
-
url
private java.net.URL url
-
-
Method Detail
-
getLogicalHeight
public float getLogicalHeight()
-
setLogicalHeight
public void setLogicalHeight(float logicalHeight)
-
getLogicalWidth
public float getLogicalWidth()
-
setLogicalWidth
public void setLogicalWidth(float logicalWidth)
-
getFrames
public java.util.List<ImageData> getFrames()
-
getData
protected byte[] getData()
-
getUrl
protected java.net.URL getUrl()
-
addFrame
protected void addFrame(ImageData frame)
-
loadData
void loadData() throws java.io.IOExceptionLoad data by URL. url must be not null. Note, this method doesn't check if data or url is null.- Throws:
java.io.IOException
-
-