亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? image.java

?? iText可以制作中文PDF文件的JAVA源程序最新版下載
?? JAVA
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
/* * $Id: Image.java,v 1.63 2002/11/19 08:33:32 blowagie Exp $ * $Name:  $ * * Copyright 1999, 2000, 2001, 2002 by Bruno Lowagie. * * The contents of this file are subject to the Mozilla Public License Version 1.1 * (the "License"); you may not use this file except in compliance with the License. * You may obtain a copy of the License at http://www.mozilla.org/MPL/ * * Software distributed under the License is distributed on an "AS IS" basis, * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License * for the specific language governing rights and limitations under the License. * * The Original Code is 'iText, a free JAVA-PDF library'. * * The Initial Developer of the Original Code is Bruno Lowagie. Portions created by * the Initial Developer are Copyright (C) 1999, 2000, 2001, 2002 by Bruno Lowagie. * All Rights Reserved. * Co-Developer of the code is Paulo Soares. Portions created by the Co-Developer * are Copyright (C) 2000, 2001, 2002 by Paulo Soares. All Rights Reserved. * * Contributor(s): all the names of the contributors are added in the source code * where applicable. * * Alternatively, the contents of this file may be used under the terms of the * LGPL license (the "GNU LIBRARY GENERAL PUBLIC LICENSE"), in which case the * provisions of LGPL are applicable instead of those above.  If you wish to * allow use of your version of this file only under the terms of the LGPL * License and not to allow others to use your version of this file under * the MPL, indicate your decision by deleting the provisions above and * replace them with the notice and other provisions required by the LGPL. * If you do not delete the provisions above, a recipient may use your version * of this file under either the MPL or the GNU LIBRARY GENERAL PUBLIC LICENSE. * * This library is free software; you can redistribute it and/or modify it * under the terms of the MPL as stated above or under the terms of the GNU * Library General Public License as published by the Free Software Foundation; * either version 2 of the License, or any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Library general Public License for more * details. * * If you didn't download this code from the following link, you should check if * you aren't using an obsolete version: * http://www.lowagie.com/iText/ */package com.lowagie.text;import java.io.File;import java.io.InputStream;import java.io.IOException;import java.net.URL;import java.net.MalformedURLException;import java.util.Properties;import java.util.Set;import java.awt.color.ICC_Profile;import com.lowagie.text.pdf.PdfTemplate;import com.lowagie.text.pdf.CCITTG4Encoder;import java.lang.reflect.Constructor;/** * An <CODE>Image</CODE> is the representation of a graphic element (JPEG, PNG or GIF) * that has to be inserted into the document * * @see		Element * @see		Rectangle */public abstract class Image extends Rectangle implements Element, MarkupAttributes {        // static membervariables (concerning the presence of borders)        /** this is a kind of image alignment. */    public static final int DEFAULT = 0;        /** this is a kind of image alignment. */    public static final int RIGHT = 1;        /** this is a kind of image alignment. */    public static final int LEFT = 2;        /** this is a kind of image alignment. */    public static final int MIDDLE = 3;        /** this is a kind of image alignment. */    public static final int TEXTWRAP = 4;        /** this is a kind of image alignment. */    public static final int UNDERLYING = 8;        /** This represents a coordinate in the transformation matrix. */    public static final int AX = 0;        /** This represents a coordinate in the transformation matrix. */    public static final int AY = 1;        /** This represents a coordinate in the transformation matrix. */    public static final int BX = 2;        /** This represents a coordinate in the transformation matrix. */    public static final int BY = 3;        /** This represents a coordinate in the transformation matrix. */    public static final int CX = 4;        /** This represents a coordinate in the transformation matrix. */    public static final int CY = 5;        /** This represents a coordinate in the transformation matrix. */    public static final int DX = 6;        /** This represents a coordinate in the transformation matrix. */    public static final int DY = 7;        // membervariables        /** Adobe invert CMYK JPEG */    protected boolean invert = false;        /** The imagetype. */    protected int type;        /** The URL of the image. */    protected URL url;        /** The raw data of the image. */    protected byte rawData[];        /** The template to be treated as an image. */    protected PdfTemplate template;        /** The alignment of the Image. */    protected int alignment;        /** Text that can be shown instead of the image. */    protected String alt;        /** This is the absolute X-position of the image. */    protected float absoluteX = Float.NaN;        /** This is the absolute Y-position of the image. */    protected float absoluteY = Float.NaN;        /** This is the width of the image without rotation. */    protected float plainWidth;        /** This is the width of the image without rotation. */    protected float plainHeight;        /** This is the scaled width of the image taking rotation into account. */    protected float scaledWidth;        /** This is the original height of the image taking rotation into account. */    protected float scaledHeight;        /** This is the rotation of the image. */    protected float rotation;        /** this is the colorspace of a jpeg-image. */    protected int colorspace = -1;        /** this is the bits per component of the raw image. It also flags a CCITT image.*/    protected int bpc = 1;        /** this is the transparency information of the raw image*/    protected int transparency[];        // serial stamping        protected Long mySerialId = getSerialId();        static long serialId = 0;        /** Holds value of property dpiX. */    protected int dpiX = 0;        /** Holds value of property dpiY. */    protected int dpiY = 0;        protected boolean mask = false;        protected Image imageMask;        protected boolean invertMask = false;        /** Holds value of property interpolation. */    protected boolean interpolation;        /** if the annotation is not null the image will be clickable. */    protected Annotation annotation = null;        /** Contains extra markupAttributes */    protected Properties markupAttributes;        /** ICC Profile attached */    protected ICC_Profile profile = null;        // constructors        /**     * Constructs an <CODE>Image</CODE>-object, using an <VAR>url</VAR>.     *     * @param		url			the <CODE>URL</CODE> where the image can be found.     */        public Image(URL url) {        super(0, 0);        this.url = url;        this.alignment = DEFAULT;        rotation = 0;    }        /**     * Constructs an <CODE>Image</CODE>-object, using an <VAR>url</VAR>.     *     * @param		image			another Image object.     */        protected Image(Image image) {        super(image);        this.type = image.type;        this.url = image.url;        this.alignment = image.alignment;        this.alt = image.alt;        this.absoluteX = image.absoluteX;        this.absoluteY = image.absoluteY;        this.plainWidth = image.plainWidth;        this.plainHeight = image.plainHeight;        this.scaledWidth = image.scaledWidth;        this.scaledHeight = image.scaledHeight;        this.rotation = image.rotation;        this.colorspace = image.colorspace;        this.rawData = image.rawData;        this.template = image.template;        this.bpc = image.bpc;        this.transparency = image.transparency;        this.mySerialId = image.mySerialId;        this.invert = image.invert;        this.dpiX = image.dpiX;        this.dpiY = image.dpiY;        this.mask = image.mask;        this.imageMask = image.imageMask;        this.invertMask = image.invertMask;        this.interpolation = image.interpolation;        this.annotation = image.annotation;        this.markupAttributes = image.markupAttributes;        this.profile = image.profile;    }        // gets an instance of an Image        public static Image getInstance(Image image) {        try {            Class cs = image.getClass();            Constructor constructor = cs.getDeclaredConstructor(new Class[]{Image.class});            return (Image)constructor.newInstance(new Object[]{image});        }        catch (Exception e) {            throw new ExceptionConverter(e);        }    }        /**     * Gets an instance of an Image.     *     * @param	url     an URL     * @return	an object of type <CODE>Gif</CODE>, <CODE>Jpeg</CODE> or <CODE>Png</CODE>     */        public static Image getInstance(URL url) throws BadElementException, MalformedURLException, IOException {        InputStream is = null;        try {            is = url.openStream();            int c1 = is.read();            int c2 = is.read();            is.close();                        is = null;            if (c1 == 'G' && c2 == 'I') {                return new Gif(url);            }            if (c1 == 0xFF && c2 == 0xD8) {                return new Jpeg(url);            }            if (c1 == Png.PNGID[0] && c2 == Png.PNGID[1]) {                return new Png(url);            }            if (c1 == 0xD7 && c2 == 0xCD) {                return new ImgWMF(url);            }            throw new IOException(url.toString() + " is not a recognized imageformat.");        }        finally {            if (is != null) {                is.close();            }        }    }        /**     * Gets an instance of an Image from a java.awt.Image.     *     * @param image the <CODE>java.awt.Image</CODE> to convert     * @param color if different from <CODE>null</CODE> the transparency     * pixels are replaced by this color     * @param forceBW if <CODE>true</CODE> the image is treated as black and white     * @return an object of type <CODE>ImgRaw</CODE>     * @throws BadElementException on error     * @throws IOException on error     */        public static Image getInstance(java.awt.Image image, java.awt.Color color, boolean forceBW) throws BadElementException, IOException {        java.awt.image.PixelGrabber pg = new java.awt.image.PixelGrabber(image, 0, 0, -1, -1, true);        try {            pg.grabPixels();        } catch (InterruptedException e) {            throw new IOException("java.awt.Image Interrupted waiting for pixels!");        }        if ((pg.getStatus() & java.awt.image.ImageObserver.ABORT) != 0) {            throw new IOException("java.awt.Image fetch aborted or errored");        }        int w = pg.getWidth();        int h = pg.getHeight();        int[] pixels = (int[])pg.getPixels();        if (forceBW) {            int byteWidth = (w / 8) + ((w & 7) != 0 ? 1 : 0);            byte[] pixelsByte = new byte[byteWidth * h];                        int index = 0;            int size = h * w;            int transColor = 1;            if (color != null) {                transColor = (color.getRed() + color.getGreen() + color.getBlue() < 384) ? 0 : 1;            }            int transparency[] = null;            int cbyte = 0x80;            int wMarker = 0;            int currByte = 0;            if (color != null) {                for (int j = 0; j < size; j++) {                    int alpha = (pixels[j] >> 24) & 0xff;                    if (alpha < 250) {                        if (transColor == 1)                            currByte |= cbyte;                    }                    else {                        if ((pixels[j] & 0x888) != 0)                            currByte |= cbyte;                    }                    cbyte >>= 1;                    if (cbyte == 0 || wMarker + 1 >= w) {                        pixelsByte[index++] = (byte)currByte;                        cbyte = 0x80;                        currByte = 0;                    }                    ++wMarker;                    if (wMarker >= w)                        wMarker = 0;                }            }            else {                for (int j = 0; j < size; j++) {                    if (transparency == null) {                        int alpha = (pixels[j] >> 24) & 0xff;                        if (alpha == 0) {                            transparency = new int[2];                            transparency[0] = transparency[1] = ((pixels[j] & 0x888) != 0) ? 1 : 0;                        }                    }                    if ((pixels[j] & 0x888) != 0)                        currByte |= cbyte;                    cbyte >>= 1;                    if (cbyte == 0 || wMarker + 1 >= w) {                        pixelsByte[index++] = (byte)currByte;                        cbyte = 0x80;                        currByte = 0;                    }                    ++wMarker;                    if (wMarker >= w)                        wMarker = 0;                }            }            return Image.getInstance(w, h, 1, 1, pixelsByte, transparency);        }        else {            byte[] pixelsByte = new byte[w * h * 3];                        int index = 0;            int size = h * w;            int red = 255;            int green = 255;            int blue = 255;            if (color != null) {                red = color.getRed();                green = color.getGreen();                blue = color.getBlue();            }            int transparency[] = null;            if (color != null) {                for (int j = 0; j < size; j++) {                    int alpha = (pixels[j] >> 24) & 0xff;                    if (alpha < 250) {                        pixelsByte[index++] = (byte) red;                        pixelsByte[index++] = (byte) green;                        pixelsByte[index++] = (byte) blue;                    }                    else {                        pixelsByte[index++] = (byte) ((pixels[j] >> 16) & 0xff);                        pixelsByte[index++] = (byte) ((pixels[j] >> 8) & 0xff);                        pixelsByte[index++] = (byte) ((pixels[j]) & 0xff);                    }                }            }            else {

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
av男人天堂一区| 欧美在线一二三四区| 精品中文字幕一区二区小辣椒 | 欧美午夜宅男影院| 国产在线乱码一区二区三区| 亚洲一区二区欧美| 日本一区二区三区视频视频| 日韩欧美一级片| 欧美视频精品在线| 99re免费视频精品全部| 韩国在线一区二区| 免费人成在线不卡| 亚洲一区在线电影| 中文字幕一区二区三| 精品999在线播放| 欧美三级电影一区| 色综合欧美在线视频区| 成人污污视频在线观看| 国产在线播放一区| 美脚の诱脚舐め脚责91 | 国产一区91精品张津瑜| 偷拍日韩校园综合在线| 一区二区高清免费观看影视大全| 亚洲乱码日产精品bd| 久久综合色之久久综合| 欧美日韩黄色一区二区| 精品国产一区二区在线观看| 日韩一区二区精品| 91精品黄色片免费大全| 欧美精品 国产精品| 在线视频国内自拍亚洲视频| 99精品久久久久久| www.欧美精品一二区| 国产成a人亚洲| 粉嫩av一区二区三区在线播放| 国产在线精品国自产拍免费| 久久aⅴ国产欧美74aaa| 蜜臀av一级做a爰片久久| 日韩中文字幕av电影| 亚洲高清免费视频| 亚洲午夜私人影院| 亚洲国产精品人人做人人爽| 亚洲一区二三区| 亚洲国产成人91porn| 亚洲成人一区二区在线观看| 午夜精品一区在线观看| 日韩激情一区二区| 美国欧美日韩国产在线播放| 久久超碰97人人做人人爱| 激情文学综合丁香| 成人综合在线视频| 99久久综合精品| 色综合久久久久综合体| 欧美日韩中字一区| 欧美一区二区三区白人| 精品国产免费久久| 国产精品毛片无遮挡高清| 国产精品国产三级国产普通话三级| 中文字幕亚洲在| 亚洲综合另类小说| 秋霞av亚洲一区二区三| 国产麻豆成人传媒免费观看| 国产成人8x视频一区二区| 色域天天综合网| 欧美一级国产精品| 国产日韩欧美精品在线| 亚洲女同一区二区| 偷窥少妇高潮呻吟av久久免费| 麻豆国产欧美日韩综合精品二区| 国产精品911| 色婷婷综合视频在线观看| 欧美日韩国产成人在线免费| 精品精品国产高清一毛片一天堂| 欧美极品aⅴ影院| 亚洲一区二区免费视频| 欧美色视频一区| 欧美成人aa大片| 亚洲欧洲色图综合| 免费成人深夜小野草| 成人午夜电影小说| 911精品国产一区二区在线| 久久精品人人做人人爽97| 亚洲另类在线制服丝袜| 久久国产三级精品| 色婷婷综合久久久中文一区二区 | 国产乱码精品一区二区三区av| 不卡一区二区中文字幕| 欧美色综合天天久久综合精品| 日韩三级电影网址| 亚洲人成电影网站色mp4| 天天色 色综合| 国产麻豆一精品一av一免费| 欧美在线色视频| 国产日韩成人精品| 婷婷久久综合九色综合伊人色| 高清成人在线观看| 日韩欧美中文一区| 亚洲永久精品大片| 成人丝袜高跟foot| 日韩视频免费直播| 亚洲成人av资源| a亚洲天堂av| 精品国产百合女同互慰| 亚洲一区中文在线| 成人av电影在线| 久久久亚洲欧洲日产国码αv| 天天操天天干天天综合网| 91免费视频网址| 久久九九99视频| 免费日本视频一区| 欧美日本国产视频| 亚洲女同女同女同女同女同69| 国产精品18久久久| 精品黑人一区二区三区久久| 亚洲va天堂va国产va久| 91麻豆免费观看| 国产精品初高中害羞小美女文| 国产乱码精品一品二品| 欧美va亚洲va| 日韩av中文在线观看| 欧美三级日韩三级国产三级| 亚洲视频中文字幕| 波多野结衣中文字幕一区二区三区| 精品国产一区二区亚洲人成毛片 | 日本韩国精品一区二区在线观看| 久久尤物电影视频在线观看| 免费成人你懂的| 日韩欧美不卡在线观看视频| 日韩成人一区二区| 这里只有精品视频在线观看| 亚洲bt欧美bt精品| 欧美人伦禁忌dvd放荡欲情| 午夜久久久影院| 欧美精品一卡两卡| 日韩精品电影在线| 欧美一区二区三区思思人| 日韩国产欧美三级| 日韩精品资源二区在线| 美女视频黄久久| 日韩手机在线导航| 国产一区二区三区黄视频 | 亚洲一区二区欧美| 欧美三级在线视频| 婷婷一区二区三区| 91精品国产免费久久综合| 午夜免费久久看| 日韩视频免费观看高清完整版在线观看| 日韩av电影天堂| 欧美mv日韩mv国产网站app| 国产精品主播直播| 中文一区一区三区高中清不卡| zzijzzij亚洲日本少妇熟睡| 日韩理论电影院| 色狠狠色狠狠综合| 亚洲第一成人在线| 日韩天堂在线观看| 国产suv精品一区二区883| 国产精品久久久久三级| 色婷婷亚洲精品| 午夜精品成人在线视频| 欧美变态口味重另类| 国产在线一区观看| 中文字幕日韩一区| 欧美日韩国产免费| 狠狠网亚洲精品| 国产精品乱子久久久久| 在线观看国产一区二区| 日本91福利区| 国产欧美一区二区三区鸳鸯浴| 不卡的av中国片| 亚洲国产精品一区二区www在线 | 一片黄亚洲嫩模| 欧美一区二区不卡视频| 国产精品77777| 夜夜嗨av一区二区三区| 日韩亚洲欧美成人一区| 成人免费毛片片v| 天堂午夜影视日韩欧美一区二区| 久久男人中文字幕资源站| 色婷婷综合久久久中文一区二区| 蜜桃一区二区三区四区| 亚洲情趣在线观看| 精品国产乱码久久久久久牛牛| 99精品国产99久久久久久白柏 | 国内精品伊人久久久久av影院| 国产精品麻豆久久久| 7777精品伊人久久久大香线蕉的 | 91麻豆精品国产91久久久久久| 国产一区二区三区黄视频 | 91成人在线精品| 国产美女娇喘av呻吟久久| 成人晚上爱看视频| 麻豆视频一区二区| 亚洲影院免费观看| 中文在线免费一区三区高中清不卡| 日本国产一区二区| 成人av手机在线观看| 国产主播一区二区| 亚州成人在线电影| 亚洲丝袜自拍清纯另类|