Java Doc for GifImage.java in  » PDF » pdf-itext » com » lowagie » text » pdf » codec » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » PDF » pdf itext » com.lowagie.text.pdf.codec 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lowagie.text.pdf.codec.GifImage

GifImage
public class GifImage (Code)
Reads gif images of all types. All the images in a gif are read in the constructors and can be retrieved with other methods.
author:
   Paulo Soares (psoares@consiste.pt)

Inner Class :static class GifFrame

Field Summary
final protected static  intMaxStackSize
    
protected  intbgColor
    
protected  intbgIndex
    
protected  byte[]block
    
protected  intblockSize
    
protected  intdelay
    
protected  intdispose
    
protected  ArrayListframes
    
protected  bytefromData
    
protected  URLfromUrl
    
protected  booleangctFlag
    
protected  intheight
    
protected  DataInputStreamin
    
protected  booleaninterlace
    
protected  intixiyiwih
    
protected  booleanlctFlag
    
protected  intlctSize
    
protected  intm_bpc
    
protected  bytem_curr_table
    
protected  intm_gbpc
    
protected  bytem_global_table
    
protected  intm_line_stride
    
protected  bytem_local_table
    
protected  bytem_out
    
protected  intpixelAspect
    
protected  byte[]pixelStack
    
protected  byte[]pixels
    
protected  short[]prefix
    
protected  byte[]suffix
    
protected  inttransIndex
    
protected  booleantransparency
    
protected  intwidth
    

Constructor Summary
public  GifImage(URL url)
     Reads gif images from an URL.
public  GifImage(String file)
     Reads gif images from a file.
public  GifImage(byte data)
     Reads gif images from a byte array.
public  GifImage(InputStream is)
     Reads gif images from a stream.

Method Summary
protected  booleandecodeImageData()
    
public  intgetFrameCount()
     Gets the number of frames the gif has.
public  int[]getFramePosition(int frame)
     Gets the [x,y] position of the frame in reference to the logical screen.
public  ImagegetImage(int frame)
     Gets the image from a frame.
public  int[]getLogicalScreen()
     Gets the logical screen.
protected static  intnewBpc(int bpc)
    
 voidprocess(InputStream is)
    
protected  intreadBlock()
     Reads next variable length block from input.
protected  byte[]readColorTable(int bpc)
    
protected  voidreadContents()
    
protected  voidreadGraphicControlExt()
    
protected  voidreadHeader()
     Reads GIF file header information.
protected  voidreadImage()
    
protected  voidreadLSD()
    
protected  intreadShort()
    
protected  voidresetFrame()
     Resets frame state for reading next image.
protected  voidsetPixel(int x, int y, int v)
    
protected  voidskip()
     Skips variable length blocks up to and including next zero length block.

Field Detail
MaxStackSize
final protected static int MaxStackSize(Code)



bgColor
protected int bgColor(Code)



bgIndex
protected int bgIndex(Code)



block
protected byte[] block(Code)



blockSize
protected int blockSize(Code)



delay
protected int delay(Code)



dispose
protected int dispose(Code)



frames
protected ArrayList frames(Code)



fromData
protected byte fromData(Code)



fromUrl
protected URL fromUrl(Code)



gctFlag
protected boolean gctFlag(Code)



height
protected int height(Code)



in
protected DataInputStream in(Code)



interlace
protected boolean interlace(Code)



ixiyiwih
protected int ixiyiwih(Code)



lctFlag
protected boolean lctFlag(Code)



lctSize
protected int lctSize(Code)



m_bpc
protected int m_bpc(Code)



m_curr_table
protected byte m_curr_table(Code)



m_gbpc
protected int m_gbpc(Code)



m_global_table
protected byte m_global_table(Code)



m_line_stride
protected int m_line_stride(Code)



m_local_table
protected byte m_local_table(Code)



m_out
protected byte m_out(Code)



pixelAspect
protected int pixelAspect(Code)



pixelStack
protected byte[] pixelStack(Code)



pixels
protected byte[] pixels(Code)



prefix
protected short[] prefix(Code)



suffix
protected byte[] suffix(Code)



transIndex
protected int transIndex(Code)



transparency
protected boolean transparency(Code)



width
protected int width(Code)




Constructor Detail
GifImage
public GifImage(URL url) throws IOException(Code)
Reads gif images from an URL.
Parameters:
  url - the URL
throws:
  IOException - on error



GifImage
public GifImage(String file) throws IOException(Code)
Reads gif images from a file.
Parameters:
  file - the file
throws:
  IOException - on error



GifImage
public GifImage(byte data) throws IOException(Code)
Reads gif images from a byte array.
Parameters:
  data - the byte array
throws:
  IOException - on error



GifImage
public GifImage(InputStream is) throws IOException(Code)
Reads gif images from a stream. The stream is not closed.
Parameters:
  is - the stream
throws:
  IOException - on error




Method Detail
decodeImageData
protected boolean decodeImageData() throws IOException(Code)



getFrameCount
public int getFrameCount()(Code)
Gets the number of frames the gif has. the number of frames the gif has



getFramePosition
public int[] getFramePosition(int frame)(Code)
Gets the [x,y] position of the frame in reference to the logical screen.
Parameters:
  frame - the frame the [x,y] position of the frame



getImage
public Image getImage(int frame)(Code)
Gets the image from a frame. The first frame is 1.
Parameters:
  frame - the frame to get the image from the image



getLogicalScreen
public int[] getLogicalScreen()(Code)
Gets the logical screen. The images may be smaller and placed in some position in this screen to playback some animation. No image will be be bigger that this. the logical screen dimensions as [x,y]



newBpc
protected static int newBpc(int bpc)(Code)



process
void process(InputStream is) throws IOException(Code)



readBlock
protected int readBlock() throws IOException(Code)
Reads next variable length block from input. number of bytes stored in "buffer"



readColorTable
protected byte[] readColorTable(int bpc) throws IOException(Code)



readContents
protected void readContents() throws IOException(Code)



readGraphicControlExt
protected void readGraphicControlExt() throws IOException(Code)
Reads Graphics Control Extension values



readHeader
protected void readHeader() throws IOException(Code)
Reads GIF file header information.



readImage
protected void readImage() throws IOException(Code)
Reads next frame image



readLSD
protected void readLSD() throws IOException(Code)
Reads Logical Screen Descriptor



readShort
protected int readShort() throws IOException(Code)
Reads next 16-bit value, LSB first



resetFrame
protected void resetFrame()(Code)
Resets frame state for reading next image.



setPixel
protected void setPixel(int x, int y, int v)(Code)



skip
protected void skip() throws IOException(Code)
Skips variable length blocks up to and including next zero length block.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.