Java Doc for PngImage.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.PngImage

PngImage
public class PngImage (Code)
Reads a PNG image. All types of PNG can be read.

It is based in part in the JAI codec.
author:
   Paulo Soares (psoares@consiste.pt)


Inner Class :static class NewByteArrayOutputStream extends ByteArrayOutputStream

Field Summary
final public static  StringIDAT
     A PNG marker.
final public static  StringIEND
     A PNG marker.
final public static  StringIHDR
     A PNG marker.
final public static  StringPLTE
     A PNG marker.
final public static  int[]PNGID
     Some PNG specific values.
 floatXYRatio
    
 PdfDictionaryadditional
    
 intbitDepth
    
 intbytesPerPixel
    
final public static  StringcHRM
     A PNG marker.
 bytecolorTable
    
 intcolorType
    
 intcompressionMethod
    
 DataInputStreamdataStream
    
 intdpiX
    
 intdpiY
    
 intfilterMethod
    
final public static  StringgAMA
     A PNG marker.
 floatgamma
    
 booleangenBWMask
    
 booleanhasCHRM
    
 intheight
    
final public static  StringiCCP
     A PNG marker.
 ICC_Profileicc_profile
    
 NewByteArrayOutputStreamidat
    
 byteimage
    
 intinputBands
    
 PdfNameintent
    
 intinterlaceMethod
    
 InputStreamis
    
final public static  StringpHYs
     A PNG marker.
 booleanpalShades
    
final public static  StringsRGB
     A PNG marker.
 bytesmask
    
final public static  StringtRNS
     A PNG marker.
 bytetrans
    
 inttransBlue
    
 inttransGreen
    
 inttransRedGray
    
 intwidth
    
 floatxWyWxRyRxGyGxByB
    

Constructor Summary
 PngImage(InputStream is)
    

Method Summary
 booleancheckMarker(String s)
    
 voiddecodeIdat()
    
 voiddecodePass(int xOffset, int yOffset, int xStep, int yStep, int passWidth, int passHeight)
    
 PdfObjectgetColorspace()
    
public static  ImagegetImage(URL url)
     Reads a PNG from an url.
public static  ImagegetImage(InputStream is)
     Reads a PNG from a stream.
public static  ImagegetImage(String file)
     Reads a PNG from a file.
public static  ImagegetImage(byte data)
     Reads a PNG from a byte array.
 ImagegetImage()
    
final public static  intgetInt(InputStream is)
     Gets an int from an InputStream.
static  intgetPixel(byte image, int x, int y, int bitDepth, int bytesPerRow)
    
 int[]getPixel(byte curr)
    
final public static  StringgetString(InputStream is)
     Gets a String from an InputStream.
final public static  intgetWord(InputStream is)
     Gets a word from an InputStream.
 voidprocessPixels(byte curr, int xOffset, int step, int y, int width)
    
 voidreadPng()
    
static  voidsetPixel(byte image, int data, int offset, int size, int x, int y, int bitDepth, int bytesPerRow)
    

Field Detail
IDAT
final public static String IDAT(Code)
A PNG marker.



IEND
final public static String IEND(Code)
A PNG marker.



IHDR
final public static String IHDR(Code)
A PNG marker.



PLTE
final public static String PLTE(Code)
A PNG marker.



PNGID
final public static int[] PNGID(Code)
Some PNG specific values.



XYRatio
float XYRatio(Code)



additional
PdfDictionary additional(Code)



bitDepth
int bitDepth(Code)



bytesPerPixel
int bytesPerPixel(Code)



cHRM
final public static String cHRM(Code)
A PNG marker.



colorTable
byte colorTable(Code)



colorType
int colorType(Code)



compressionMethod
int compressionMethod(Code)



dataStream
DataInputStream dataStream(Code)



dpiX
int dpiX(Code)



dpiY
int dpiY(Code)



filterMethod
int filterMethod(Code)



gAMA
final public static String gAMA(Code)
A PNG marker.



gamma
float gamma(Code)



genBWMask
boolean genBWMask(Code)



hasCHRM
boolean hasCHRM(Code)



height
int height(Code)



iCCP
final public static String iCCP(Code)
A PNG marker.



icc_profile
ICC_Profile icc_profile(Code)



idat
NewByteArrayOutputStream idat(Code)



image
byte image(Code)



inputBands
int inputBands(Code)



intent
PdfName intent(Code)



interlaceMethod
int interlaceMethod(Code)



is
InputStream is(Code)



pHYs
final public static String pHYs(Code)
A PNG marker.



palShades
boolean palShades(Code)



sRGB
final public static String sRGB(Code)
A PNG marker.



smask
byte smask(Code)



tRNS
final public static String tRNS(Code)
A PNG marker.



trans
byte trans(Code)



transBlue
int transBlue(Code)



transGreen
int transGreen(Code)



transRedGray
int transRedGray(Code)



width
int width(Code)



xWyWxRyRxGyGxByB
float xWyWxRyRxGyGxByB(Code)




Constructor Detail
PngImage
PngImage(InputStream is)(Code)
Creates a new instance of PngImage




Method Detail
checkMarker
boolean checkMarker(String s)(Code)



decodeIdat
void decodeIdat()(Code)



decodePass
void decodePass(int xOffset, int yOffset, int xStep, int yStep, int passWidth, int passHeight)(Code)



getColorspace
PdfObject getColorspace()(Code)



getImage
public static Image getImage(URL url) throws IOException(Code)
Reads a PNG from an url.
Parameters:
  url - the url
throws:
  IOException - on error the image



getImage
public static Image getImage(InputStream is) throws IOException(Code)
Reads a PNG from a stream.
Parameters:
  is - the stream
throws:
  IOException - on error the image



getImage
public static Image getImage(String file) throws IOException(Code)
Reads a PNG from a file.
Parameters:
  file - the file
throws:
  IOException - on error the image



getImage
public static Image getImage(byte data) throws IOException(Code)
Reads a PNG from a byte array.
Parameters:
  data - the byte array
throws:
  IOException - on error the image



getImage
Image getImage() throws IOException(Code)



getInt
final public static int getInt(InputStream is) throws IOException(Code)
Gets an int from an InputStream.
Parameters:
  is - an InputStream the value of an int



getPixel
static int getPixel(byte image, int x, int y, int bitDepth, int bytesPerRow)(Code)



getPixel
int[] getPixel(byte curr)(Code)



getString
final public static String getString(InputStream is) throws IOException(Code)
Gets a String from an InputStream.
Parameters:
  is - an InputStream the value of an int



getWord
final public static int getWord(InputStream is) throws IOException(Code)
Gets a word from an InputStream.
Parameters:
  is - an InputStream the value of an int



processPixels
void processPixels(byte curr, int xOffset, int step, int y, int width)(Code)



readPng
void readPng() throws IOException(Code)



setPixel
static void setPixel(byte image, int data, int offset, int size, int x, int y, int bitDepth, int bytesPerRow)(Code)



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.