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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? image.java

?? iText可以制作中文PDF文件的JAVA源程序最新版下載
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
                for (int j = 0; j < size; j++) {                    if (transparency == null) {                        int alpha = (pixels[j] >> 24) & 0xff;                        if (alpha == 0) {                            transparency = new int[6];                            transparency[0] = transparency[1] = (pixels[j] >> 16) & 0xff;                            transparency[2] = transparency[3] = (pixels[j] >> 8) & 0xff;                            transparency[4] = transparency[5] = pixels[j] & 0xff;                        }                    }                    pixelsByte[index++] = (byte) ((pixels[j] >> 16) & 0xff);                    pixelsByte[index++] = (byte) ((pixels[j] >> 8) & 0xff);                    pixelsByte[index++] = (byte) ((pixels[j]) & 0xff);                }            }            return Image.getInstance(w, h, 3, 8, pixelsByte, transparency);        }    }        /**     * 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     * @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) throws BadElementException, IOException {        return Image.getInstance(image, color, false);    }        /**     * Gets an instance of an Image.     *     * @param	filename    a filename     * @return	an object of type <CODE>Gif</CODE>, <CODE>Jpeg</CODE> or <CODE>Png</CODE>     */        public static Image getInstance(String filename) throws BadElementException, MalformedURLException, IOException {        return getInstance(toURL(filename));    }        /**     * Gets an instance of an Image.     *     * @param	img     a byte array     * @return	an object of type <CODE>Gif</CODE>, <CODE>Jpeg</CODE> or <CODE>Png</CODE>     */        public static Image getInstance(byte[] img) throws BadElementException, MalformedURLException, IOException {        InputStream is = null;        try {            is = new java.io.ByteArrayInputStream(img);            int c1 = is.read();            int c2 = is.read();            is.close();            is = null;            if (c1 == 'G' && c2 == 'I') {                return new Gif(img);            }            if (c1 == 0xFF && c2 == 0xD8) {                return new Jpeg(img);            }            if (c1 == Png.PNGID[0] && c2 == Png.PNGID[1]) {                return new Png(img);            }            if (c1 == 0xD7 && c2 == 0xCD) {                return new ImgWMF(img);            }            throw new IOException("Could not find a recognized imageformat.");        }        finally {            if (is != null) {                is.close();            }        }    }        /**     * Gets an instance of an Image in raw mode.     *     * @param width the width of the image in pixels     * @param height the height of the image in pixels     * @param components 1,3 or 4 for GrayScale, RGB and CMYK     * @param data the image data     * @param bpc bits per component     * @return an object of type <CODE>ImgRaw</CODE>     * @throws BadElementException on error     */        public static Image getInstance(int width, int height, int components, int bpc, byte data[]) throws BadElementException {        return Image.getInstance(width, height, components, bpc, data, null);    }        public static Image getInstance(PdfTemplate template) throws BadElementException {        return new ImgTemplate(template);    }        public static Image getInstance(int width, int height, boolean reverseBits, int typeCCITT, int parameters, byte[] data) throws BadElementException {        return Image.getInstance(width, height, reverseBits, typeCCITT, parameters, data, null);    }        public static Image getInstance(int width, int height, boolean reverseBits, int typeCCITT, int parameters, byte[] data, int transparency[]) throws BadElementException {        if (transparency != null && transparency.length != 2)            throw new BadElementException("Transparency length must be equal to 2 with CCITT images");        Image img = new ImgCCITT(width, height, reverseBits, typeCCITT, parameters, data);        img.transparency = transparency;        return img;    }    /**     * Gets an instance of an Image in raw mode.     *     * @param width the width of the image in pixels     * @param height the height of the image in pixels     * @param components 1,3 or 4 for GrayScale, RGB and CMYK     * @param data the image data     * @param bpc bits per component     * @param transparency transparency information in the Mask format of the     * image dictionary     * @return an object of type <CODE>ImgRaw</CODE>     * @throws BadElementException on error     */        public static Image getInstance(int width, int height, int components, int bpc, byte data[], int transparency[]) throws BadElementException {        if (transparency != null && transparency.length != components * 2)            throw new BadElementException("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, Image.CCITTG4, Image.CCITT_BLACKIS1, g4, transparency);        }        Image img = new ImgRaw(width, height, components, bpc, data);        img.transparency = transparency;        return img;    }        /**     * Returns an <CODE>Image</CODE> that has been constructed taking in account     * the value of some <VAR>attributes</VAR>.     *     * @param	attributes		Some attributes     * @return	an <CODE>Image</CODE>     */        public static Image getInstance(Properties attributes) throws BadElementException, MalformedURLException, IOException {        String value = (String)attributes.remove(ElementTags.URL);        if (value == null) throw new MalformedURLException("The URL of the image is missing.");        Image image = Image.getInstance(value);        int align = 0;        if ((value = (String)attributes.remove(ElementTags.ALIGN)) != null) {            if (ElementTags.ALIGN_LEFT.equalsIgnoreCase(value)) align |= Image.LEFT;            else if (ElementTags.ALIGN_RIGHT.equalsIgnoreCase(value)) align |= Image.RIGHT;            else if (ElementTags.ALIGN_MIDDLE.equalsIgnoreCase(value)) align |= Image.MIDDLE;        }        if ((value = (String)attributes.remove(ElementTags.UNDERLYING)) != null) {            if (new Boolean(value).booleanValue()) align |= Image.UNDERLYING;        }        if ((value = (String)attributes.remove(ElementTags.TEXTWRAP)) != null) {            if (new Boolean(value).booleanValue()) align |= Image.TEXTWRAP;        }        image.setAlignment(align);        if ((value = (String)attributes.remove(ElementTags.ALT)) != null) {            image.setAlt(value);        }        String x;        String y;        if (((x = (String)attributes.remove(ElementTags.ABSOLUTEX)) != null)        && ((y = (String)attributes.remove(ElementTags.ABSOLUTEY)) != null)) {            image.setAbsolutePosition(Float.valueOf(x + "f").floatValue(), Float.valueOf(y + "f").floatValue());        }        if ((value = (String)attributes.remove(ElementTags.PLAINWIDTH)) != null) {            image.scaleAbsoluteWidth(Float.valueOf(value + "f").floatValue());        }        if ((value = (String)attributes.remove(ElementTags.PLAINHEIGHT)) != null) {            image.scaleAbsoluteHeight(Float.valueOf(value + "f").floatValue());        }        if ((value = (String)attributes.remove(ElementTags.ROTATION)) != null) {            image.setRotation(Float.valueOf(value + "f").floatValue());        }        if (attributes.size() > 0) image.setMarkupAttributes(attributes);        return image;    }        // methods to set information        /**     * Sets the alignment for the image.     *     * @param		alignment		the alignment     */        public void setAlignment(int alignment) {        this.alignment = alignment;    }        /**     * Sets the alternative information for the image.     *     * @param		alt		the alternative information     */        public void setAlt(String alt) {        this.alt = alt;    }        /**     * Sets the absolute position of the <CODE>Image</CODE>.     *     * @param	absoluteX     * @param	absoluteY     */        public void setAbsolutePosition(float absoluteX, float absoluteY) {        this.absoluteX = absoluteX;        this.absoluteY = absoluteY;    }        /**     * Scale the image to an absolute width and an absolute height.     *     * @param		newWidth	the new width     * @param		newHeight	the new height     */        public void scaleAbsolute(float newWidth, float newHeight) {        plainWidth = newWidth;        plainHeight = newHeight;        float[] matrix = matrix();        scaledWidth = matrix[DX] - matrix[CX];        scaledHeight = matrix[DY] - matrix[CY];    }        /**     * Scale the image to an absolute width.     *     * @param		newWidth	the new width     */        public void scaleAbsoluteWidth(float newWidth) {        plainWidth = newWidth;        float[] matrix = matrix();        scaledWidth = matrix[DX] - matrix[CX];        scaledHeight = matrix[DY] - matrix[CY];    }        /**     * Scale the image to an absolute height.     *     * @param		newHeight	the new height     */        public void scaleAbsoluteHeight(float newHeight) {        plainHeight = newHeight;        float[] matrix = matrix();        scaledWidth = matrix[DX] - matrix[CX];        scaledHeight = matrix[DY] - matrix[CY];    }        /**     * Scale the image to a certain percentage.     *     * @param		percent		the scaling percentage     */        public void scalePercent(float percent) {        scalePercent(percent, percent);    }        /**     * Scale the width and height of an image to a certain percentage.     *     * @param		percentX	the scaling percentage of the width     * @param		percentY	the scaling percentage of the height     */        public void scalePercent(float percentX, float percentY) {        plainWidth = (width() * percentX) / 100f;        plainHeight = (height() * percentY) / 100f;        float[] matrix = matrix();        scaledWidth = matrix[DX] - matrix[CX];        scaledHeight = matrix[DY] - matrix[CY];    }        /**     * Scales the image so that it fits a certain width and height.     *     * @param		fitWidth		the width to fit     * @param		fitHeight		the height to fit     */        public void scaleToFit(float fitWidth, float fitHeight) {        float percentX = (fitWidth * 100) / width();        float percentY = (fitHeight * 100) / height();        scalePercent(percentX < percentY ? percentX : percentY);    }        /**     * Sets the rotation of the image in radians.     *     * @param		r		rotation in radians     */        public void setRotation(float r) {        double d=Math.PI;                  //__IDS__        rotation = (float)(r % (2.0 * d)); //__IDS__        if (rotation < 0) {            rotation += 2.0 * d;           //__IDS__        }        float[] matrix = matrix();        scaledWidth = matrix[DX] - matrix[CX];        scaledHeight = matrix[DY] - matrix[CY];    }        /**     * Sets the rotation of the image in degrees.     *     * @param		deg		rotation in degrees     */        public void setRotationDegrees(float deg) {        double d=Math.PI;                  //__IDS__        setRotation(deg / 180 * (float)d); //__IDS__    }        /**     * Sets the annotation of this Image.     *     * @param   annotation  the annotation     */        public void setAnnotation(Annotation annotation) {        this.annotation = annotation;    }        /**     * Gets the annotation.     *     * @return  the annotation that is linked to this image     */        public Annotation annotation() {        return annotation;    }        // methods to retrieve information        /** Gets the bpc for the image.     * <P>     * Remark: this only makes sense for Images of the type <CODE>RawImage</CODE>.     *     * @return a bpc value     */        public int bpc() {        return bpc;    }        /**     * Gets the raw data for the image.     * <P>     * Remark: this only makes sense for Images of the type <CODE>RawImage</CODE>.     *     * @return		the raw data     */        public byte[] rawData() {        return rawData;    }        /**     * Gets the template to be used as an image.     * <P>     * Remark: this only makes sense for Images of the type <CODE>ImgTemplate</CODE>.     *     * @return		the template     */        public PdfTemplate templateData() {        return template;    }        public void setTemplateData(PdfTemplate template) {        this.template = template;    }        /**     * Checks if the <CODE>Images</CODE> has to be added at an absolute position.     *     * @return		a boolean     */        public boolean hasAbsolutePosition() {        return !Float.isNaN(absoluteY);    }        /**     * Checks if the <CODE>Images</CODE> has to be added at an absolute X position.     *     * @return		a boolean     */        public boolean hasAbsoluteX() {        return !Float.isNaN(absoluteX);    }        /**     * Returns the absolute X position.     *     * @return		a position     */        public float absoluteX() {        return absoluteX;    }        /**

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产亚洲精久久久久久| 精品91自产拍在线观看一区| 国产馆精品极品| 国产老女人精品毛片久久| 麻豆成人在线观看| 麻豆精品一区二区三区| 国产自产视频一区二区三区| 九色|91porny| 国产很黄免费观看久久| 成人免费看片app下载| 99九九99九九九视频精品| 日本福利一区二区| 欧美精品国产精品| xvideos.蜜桃一区二区| 欧美韩日一区二区三区| 中文字幕中文字幕在线一区 | 亚洲自拍偷拍图区| 午夜精品福利久久久| 日本不卡不码高清免费观看| 色综合久久久网| 欧美性一二三区| 欧美一区二区三区免费| 国产精品久久久久四虎| 亚洲高清视频在线| 国产成人午夜电影网| 色成年激情久久综合| 69堂成人精品免费视频| 日本一区二区三区国色天香| 一区二区三区四区乱视频| 久久精品国产一区二区| 色偷偷一区二区三区| 日韩精品一区二区三区视频播放 | 极品少妇xxxx精品少妇| 丁香亚洲综合激情啪啪综合| 色婷婷久久99综合精品jk白丝| 这里只有精品99re| 国产精品二三区| 久久精品国产成人一区二区三区| 成人国产精品免费网站| 91精品国产品国语在线不卡| 日本一区二区视频在线观看| 日韩中文字幕91| 欧美一区日本一区韩国一区| 国产精品久久一卡二卡| 精品一区二区在线免费观看| 在线精品视频一区二区三四| 国产丝袜欧美中文另类| 全部av―极品视觉盛宴亚洲| 一本大道久久a久久精品综合| 精品久久国产老人久久综合| 亚洲高清在线视频| 91农村精品一区二区在线| 久久久精品中文字幕麻豆发布| 天涯成人国产亚洲精品一区av| 99r国产精品| 国产精品传媒入口麻豆| 国产一区二区h| 欧美v日韩v国产v| 免费黄网站欧美| 91精品国产欧美日韩| 亚洲在线中文字幕| 91久久线看在观草草青青| 国产精品不卡一区二区三区| 国产成人免费在线| 久久九九久久九九| 国产电影精品久久禁18| 久久综合久久综合亚洲| 久久激情五月婷婷| 日韩一级黄色片| 男男视频亚洲欧美| 91精品国产91综合久久蜜臀| 日韩电影在线免费看| 欧美一区二区三区公司| 日韩av中文字幕一区二区三区| 欧美美女bb生活片| 日韩中文字幕1| 日韩写真欧美这视频| 久久国产视频网| 国产午夜精品久久| 粉嫩嫩av羞羞动漫久久久| 欧美韩日一区二区三区四区| 99久久综合国产精品| 亚洲少妇30p| 欧美午夜精品电影| 蜜桃精品视频在线| 国产嫩草影院久久久久| 91丨porny丨最新| 亚洲国产成人av好男人在线观看| 欧美性猛交xxxxxxxx| 免费观看一级特黄欧美大片| www成人在线观看| 成人午夜激情片| 亚洲一区二区在线观看视频| 欧美一级搡bbbb搡bbbb| 国产成人高清在线| 亚洲制服丝袜一区| 日韩欧美亚洲另类制服综合在线| 国产成人免费在线观看| 亚洲精品中文在线| 日韩亚洲国产中文字幕欧美| 风流少妇一区二区| 亚洲国产va精品久久久不卡综合| 日韩亚洲欧美在线| 91亚洲精品乱码久久久久久蜜桃| 一区二区国产盗摄色噜噜| 欧美电影免费观看高清完整版在线| 国产酒店精品激情| 亚洲亚洲人成综合网络| 国产视频视频一区| 精品视频在线免费| 国产99一区视频免费| 亚洲成人免费视频| 中文字幕成人av| 欧美一激情一区二区三区| 成人性生交大片免费看中文网站| 亚洲国产成人高清精品| 国产亚洲欧美激情| 5月丁香婷婷综合| 99精品桃花视频在线观看| 美女视频黄 久久| 亚洲一区二区视频| 国产精品美女一区二区| 日韩欧美二区三区| 欧美日韩精品免费观看视频| 成人在线视频一区二区| 久久精品国产精品青草| 亚洲成人一区二区在线观看| 一区免费观看视频| 久久精品一区四区| 欧美一卡二卡三卡| 欧美日本视频在线| 在线看一区二区| 91亚洲精品久久久蜜桃网站| 国产美女精品一区二区三区| 日韩av网站免费在线| 性做久久久久久久久| 亚洲六月丁香色婷婷综合久久| 国产欧美一区二区三区鸳鸯浴| 日韩美女天天操| 欧美一级久久久久久久大片| 欧美夫妻性生活| 欧美日韩免费不卡视频一区二区三区| 成人av资源在线| 成人动漫一区二区三区| 成人av网站在线| www.久久久久久久久| 成人短视频下载| 91一区一区三区| 色视频一区二区| 欧美亚一区二区| 欧美亚洲高清一区二区三区不卡| 一本一道综合狠狠老| 欧洲精品中文字幕| 欧美午夜一区二区| 欧美人与禽zozo性伦| 日韩一区二区免费视频| 精品久久人人做人人爽| 久久久99久久| 最新久久zyz资源站| 一区二区三区波多野结衣在线观看| 亚洲色图制服诱惑| 无码av中文一区二区三区桃花岛| 亚洲电影在线播放| 人人超碰91尤物精品国产| 国产精品综合在线视频| 成人亚洲一区二区一| 在线免费观看视频一区| 欧美一级久久久久久久大片| wwwwww.欧美系列| 亚洲欧洲成人自拍| 婷婷中文字幕综合| 国产一区二区在线观看免费 | 亚洲天堂2016| 亚洲bt欧美bt精品777| 蓝色福利精品导航| 波多野结衣中文字幕一区| 欧美午夜电影一区| 亚洲欧洲无码一区二区三区| 亚洲精品老司机| 精品亚洲欧美一区| 色狠狠av一区二区三区| 欧美大度的电影原声| 国产精品久久久久影院老司| 亚洲成人免费在线观看| 国产成人无遮挡在线视频| 欧美在线三级电影| 精品久久久久99| 亚洲一级不卡视频| 国产成人午夜精品影院观看视频 | 视频一区欧美日韩| 国产福利91精品一区| 欧美日韩夫妻久久| 国产精品久久久一本精品| 午夜视频一区在线观看| 不卡区在线中文字幕| 日韩欧美专区在线| 一区二区成人在线观看| 国产一区二区视频在线播放| 欧美色综合久久| 国产精品色一区二区三区|