|
|
|
@ -47,7 +47,7 @@
|
|
|
|
|
* http://www.lowagie.com/iText/
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
package com.third.v2.lowagie.text; |
|
|
|
|
package com.fr.third.v2.lowagie.text; |
|
|
|
|
|
|
|
|
|
import java.awt.Graphics2D; |
|
|
|
|
import java.awt.color.ICC_Profile; |
|
|
|
@ -58,26 +58,26 @@ import java.lang.reflect.Constructor;
|
|
|
|
|
import java.net.MalformedURLException; |
|
|
|
|
import java.net.URL; |
|
|
|
|
|
|
|
|
|
import com.third.v2.lowagie.text.pdf.PRIndirectReference; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.PdfArray; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.PdfContentByte; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.PdfDictionary; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.PdfIndirectReference; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.PdfName; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.PdfNumber; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.PdfOCG; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.PdfObject; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.PdfReader; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.PdfStream; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.PdfTemplate; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.PdfWriter; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.RandomAccessFileOrArray; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.codec.BmpImage; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.codec.CCITTG4Encoder; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.codec.GifImage; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.codec.JBIG2Image; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.codec.PngImage; |
|
|
|
|
import com.third.v2.lowagie.text.pdf.codec.TiffImage; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.PRIndirectReference; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.PdfArray; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.PdfContentByte; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.PdfDictionary; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.PdfName; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.PdfNumber; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.PdfOCG; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.PdfObject; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.PdfStream; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.PdfTemplate; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.RandomAccessFileOrArray; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.codec.CCITTG4Encoder; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.codec.GifImage; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.codec.JBIG2Image; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.codec.PngImage; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.codec.TiffImage; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.PdfIndirectReference; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.PdfReader; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.PdfWriter; |
|
|
|
|
import com.fr.third.v2.lowagie.text.pdf.codec.BmpImage; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* An <CODE>Image</CODE> is the representation of a graphic element (JPEG, PNG |
|
|
|
@ -576,8 +576,8 @@ public abstract class Image extends Rectangle {
|
|
|
|
|
"Transparency length must be equal to (componentes * 2)"); |
|
|
|
|
if (components == 1 && bpc == 1) { |
|
|
|
|
byte g4[] = CCITTG4Encoder.compress(data, width, height); |
|
|
|
|
return Image.getInstance(width, height, false, CCITTG4, |
|
|
|
|
CCITT_BLACKIS1, g4, transparency); |
|
|
|
|
return Image.getInstance(width, height, false, Image.CCITTG4, |
|
|
|
|
Image.CCITT_BLACKIS1, g4, transparency); |
|
|
|
|
} |
|
|
|
|
Image img = new ImgRaw(width, height, components, bpc, data); |
|
|
|
|
img.transparency = transparency; |