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

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

?? pngencoderb.java

?? 用java編寫的七星彩走勢分析圖
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
    protected void writeHeader()    {        int startPos;        startPos = bytePos = writeInt4( 13, bytePos );        bytePos = writeBytes( IHDR, bytePos );        width = image.getWidth( null );        height = image.getHeight( null );        bytePos = writeInt4( width, bytePos );        bytePos = writeInt4( height, bytePos );        bytePos = writeByte( 8, bytePos ); // bit depth        if (bytesPerPixel != 1)        {            bytePos = writeByte( (encodeAlpha) ? 6 : 2, bytePos ); // direct model        }        else        {            bytePos = writeByte( 3, bytePos ); // indexed        }        bytePos = writeByte( 0, bytePos ); // compression method        bytePos = writeByte( 0, bytePos ); // filter method        bytePos = writeByte( 0, bytePos ); // no interlace        crc.reset();        crc.update( pngBytes, startPos, bytePos-startPos );        crcValue = crc.getValue();        bytePos = writeInt4( (int) crcValue, bytePos );    }    protected void writePalette( IndexColorModel icm )    {        byte[] redPal = new byte[256];        byte[] greenPal = new byte[256];        byte[] bluePal = new byte[256];        byte[] allPal = new byte[768];        int i;        icm.getReds( redPal );        icm.getGreens( greenPal );        icm.getBlues( bluePal );        for (i=0; i<256; i++)        {            allPal[i*3  ] = redPal[i];            allPal[i*3+1] = greenPal[i];            allPal[i*3+2] = bluePal[i];        }        bytePos = writeInt4( 768, bytePos );        bytePos = writeBytes( PLTE, bytePos );        crc.reset();        crc.update( PLTE );        bytePos = writeBytes( allPal, bytePos );        crc.update( allPal );        crcValue = crc.getValue();        bytePos = writeInt4( (int) crcValue, bytePos );    }    /**     * Write the image data into the pngBytes array.     * This will write one or more PNG "IDAT" chunks. In order     * to conserve memory, this method grabs as many rows as will     * fit into 32K bytes, or the whole image; whichever is less.     *     *     * @return true if no errors; false if error grabbing pixels     */    protected boolean writeImageData()    {        int rowsLeft = height;  // number of rows remaining to write        int startRow = 0;       // starting row to process this time through        int nRows;              // how many rows to grab at a time        byte[] scanLines;       // the scan lines to be compressed        int scanPos;            // where we are in the scan lines        int startPos;           // where this line's actual pixels start (used for filtering)        int readPos;            // position from which source pixels are read        byte[] compressedLines; // the resultant compressed lines        int nCompressed;        // how big is the compressed area?        byte[] pixels;          // storage area for byte-sized pixels        int[] iPixels;          // storage area for int-sized pixels		short[] sPixels;		// for Win 2000/ME ushort pixels		final int type = image.getType();		// TYPE_INT_RGB        = 1		// TYPE_INT_ARGB       = 2		// TYPE_INT_ARGB_PRE   = 3		// TYPE_INT_BGR        = 4		// TYPE_3BYTE_BGR      = 5		// TYPE_4BYTE_ABGR     = 6		// TYPE_4BYTE_ABGR_PRE = 7		// TYPE_BYTE_GRAY      = 10		// TYPE_BYTE_BINARY    = 12		// TYPE_BYTE_INDEXED   = 13		// TYPE_USHORT_GRAY    = 11		// TYPE_USHORT_565_RGB = 8		// TYPE_USHORT_555_RGB = 9		// TYPE_CUSTOM         = 0.        Deflater scrunch = new Deflater( compressionLevel );        ByteArrayOutputStream outBytes =             new ByteArrayOutputStream(1024);                    DeflaterOutputStream compBytes =            new DeflaterOutputStream( outBytes, scrunch );        if (bytesPerPixel == 1)        {            writePalette( (IndexColorModel) image.getColorModel() );        }        try        {            while (rowsLeft > 0)            {                nRows = Math.min( 32767 / (width*(bytesPerPixel+1)), rowsLeft );                nRows = Math.max( nRows, 1 );                /*                 * Create a data chunk. scanLines adds "nRows" for                 * the filter bytes.                 */                scanLines = new byte[width * nRows * bytesPerPixel +  nRows];                if (filter == FILTER_SUB)                {                    leftBytes = new byte[16];                }                if (filter == FILTER_UP)                {                    priorRow = new byte[width*bytesPerPixel];                }				final Object data =					wRaster.getDataElements( 0, startRow, width, nRows, null );                pixels = null;				iPixels = null;				sPixels = null;				if (tType == DataBuffer.TYPE_BYTE)                {                    pixels = (byte[]) data;                }                else if (tType == DataBuffer.TYPE_INT)                {                    iPixels = (int[]) data;				}				else if (tType == DataBuffer.TYPE_USHORT)				{					sPixels = (short[]) data;				}                scanPos = 0;                readPos = 0;                startPos = 1;                for (int i=0; i<width*nRows; i++)                {                    if (i % width == 0)                    {                        scanLines[scanPos++] = (byte) filter;                         startPos = scanPos;                    }                    if (bytesPerPixel == 1)	// assume TYPE_BYTE, indexed                    {                        scanLines[scanPos++] = pixels[readPos++];                    }                    else if (tType == DataBuffer.TYPE_BYTE)                    {                        scanLines[scanPos++] = pixels[readPos++];                        scanLines[scanPos++] = pixels[readPos++];                        scanLines[scanPos++] = pixels[readPos++];                        if (encodeAlpha)                        {                            scanLines[scanPos++] = pixels[readPos++];                        }                        else                        {                            readPos++;                        }                    }					else if (tType == DataBuffer.TYPE_USHORT)					{						short pxl = sPixels[readPos++];						if (type == BufferedImage.TYPE_USHORT_565_RGB) {							scanLines[scanPos++] = (byte) ((pxl >> 8) & 0xf8);							scanLines[scanPos++] = (byte) ((pxl >> 2) & 0xfc);						} else {                // assume USHORT_555_RGB							scanLines[scanPos++] = (byte) ((pxl >> 7) & 0xf8);							scanLines[scanPos++] = (byte) ((pxl >> 2) & 0xf8);						}						scanLines[scanPos++] = (byte) ((pxl << 3) & 0xf8);					}					else      // assume tType INT and type RGB or ARGB					{						int pxl = iPixels[readPos++];						scanLines[scanPos++] = (byte) ((pxl >> 16) & 0xff);						scanLines[scanPos++] = (byte) ((pxl >>  8) & 0xff);						scanLines[scanPos++] = (byte) ((pxl      ) & 0xff);						if (encodeAlpha) {							scanLines[scanPos++] = (byte) ((pxl >> 24) & 0xff);						}					}                    if ((i % width == width-1) && (filter != FILTER_NONE))                    {                        if (filter == FILTER_SUB)                        {                            filterSub( scanLines, startPos, width );                        }                        if (filter == FILTER_UP)                        {                            filterUp( scanLines, startPos, width );                        }                    }                }                /*                 * Write these lines to the output area                 */                compBytes.write( scanLines, 0, scanPos );                startRow += nRows;                rowsLeft -= nRows;            }            compBytes.close();            /*             * Write the compressed bytes             */            compressedLines = outBytes.toByteArray();            nCompressed = compressedLines.length;            crc.reset();            bytePos = writeInt4( nCompressed, bytePos );            bytePos = writeBytes( IDAT, bytePos );            crc.update( IDAT );            bytePos = writeBytes( compressedLines, nCompressed, bytePos );            crc.update( compressedLines, 0, nCompressed );            crcValue = crc.getValue();            bytePos = writeInt4( (int) crcValue, bytePos );            scrunch.finish();            return true;        }        catch (IOException e)        {            System.err.println( e.toString());            return false;        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区二区三免费高清| 日本系列欧美系列| 精油按摩中文字幕久久| 欧美色综合网站| 亚洲色图视频免费播放| 国产91富婆露脸刺激对白| 欧美性一级生活| 亚洲色图欧美偷拍| 91黄色免费看| 一二三区精品视频| 欧美午夜免费电影| 香蕉乱码成人久久天堂爱免费| 日本高清无吗v一区| 欧美国产精品劲爆| 99国产精品久久久久久久久久| 久久久精品国产99久久精品芒果 | 国产美女精品人人做人人爽| 久久美女艺术照精彩视频福利播放| 一区二区欧美在线观看| 99久久免费视频.com| 亚洲欧美一区二区三区久本道91| 国产**成人网毛片九色| 中文字幕一区二区三区精华液 | 大美女一区二区三区| 久久精品欧美日韩| 成人免费视频app| 成人欧美一区二区三区视频网页 | 国产精品视频观看| 91污片在线观看| 亚洲国产综合91精品麻豆| 91免费观看国产| 亚洲成人激情社区| 欧美大度的电影原声| 国产99久久精品| 国产欧美精品国产国产专区| 91丝袜高跟美女视频| 亚洲小说欧美激情另类| 欧美一级高清大全免费观看| 国产一区二区不卡老阿姨| 国产精品视频观看| 欧美日韩国产首页在线观看| 日本亚洲免费观看| 亚洲国产成人午夜在线一区| 欧洲一区在线观看| 黑人巨大精品欧美一区| 亚洲欧洲无码一区二区三区| 欧美日韩专区在线| 国产成人在线影院| 亚洲国产成人av网| 久久久久99精品一区| 色综合久久久久| 午夜不卡在线视频| 国产三级精品视频| 91精品国产综合久久福利软件| 国产精品1024| 天堂蜜桃91精品| 国产精品久线在线观看| 日韩免费一区二区| 欧美性色综合网| 国产成人精品亚洲777人妖| 亚洲一区免费观看| 亚洲精品亚洲人成人网| 欧美国产日韩一二三区| 精品播放一区二区| 日韩一区二区精品葵司在线 | 在线免费观看成人短视频| 成人美女视频在线看| 国产精品影视天天线| 久久国产精品99精品国产 | 国产精品一区二区果冻传媒| 麻豆精品国产传媒mv男同| 亚洲一区二区黄色| 亚洲午夜一区二区| 亚洲国产综合视频在线观看| 亚洲精品欧美专区| 亚洲综合视频网| 亚洲国产乱码最新视频| 亚洲国产视频一区| 亚洲一区二区三区影院| 亚洲黄色在线视频| 亚洲综合无码一区二区| 亚洲大型综合色站| 秋霞午夜av一区二区三区| 免费在线观看不卡| 国产一区二区三区免费观看| 国产精品中文欧美| 成人黄色综合网站| 91免费在线视频观看| 日本伦理一区二区| 欧美日韩国产系列| 欧美va在线播放| 久久久久久久精| 国产精品久久久久一区二区三区| 亚洲色图另类专区| 亚洲图片欧美色图| 六月丁香综合在线视频| 国产一区视频在线看| 成人av在线电影| 91国产福利在线| 欧美精品久久久久久久久老牛影院| 欧美妇女性影城| 久久影院午夜片一区| 国产精品欧美精品| 亚洲国产美国国产综合一区二区| 人妖欧美一区二区| 精品久久久久久久久久久久久久久久久 | 久久精品一二三| 国产精品久久久久久亚洲毛片 | 不卡一区二区三区四区| 成a人片亚洲日本久久| 色噜噜久久综合| 日韩欧美高清一区| 国产精品久久久久9999吃药| 亚洲一区av在线| 久久成人综合网| 91网站在线播放| 日韩精品一区二区三区视频| 中文字幕乱码日本亚洲一区二区| 一区二区三区精品久久久| 精品一区二区三区影院在线午夜| 91蜜桃在线免费视频| 日韩午夜三级在线| 自拍偷拍国产精品| 国产在线日韩欧美| 欧美专区亚洲专区| 欧美国产欧美综合| 久久精品99久久久| 色天天综合色天天久久| 欧美v亚洲v综合ⅴ国产v| 亚洲精品高清视频在线观看| 精品影视av免费| 欧美影片第一页| 中文字幕av资源一区| 午夜精品一区二区三区三上悠亚| 日韩色视频在线观看| a在线欧美一区| 在线电影欧美成精品| 国产精品久久久久婷婷二区次| 毛片不卡一区二区| 色狠狠桃花综合| 国产性色一区二区| 国产成人精品免费一区二区| 欧美日韩一区二区三区不卡| 国产精品久久三| 国产麻豆9l精品三级站| 7878成人国产在线观看| 一区二区在线看| av一区二区三区黑人| 国产亚洲精品aa| 毛片av一区二区| 欧美精品三级在线观看| 一区二区三区美女| 99精品久久只有精品| 国产肉丝袜一区二区| 国产综合色精品一区二区三区| 9191国产精品| 婷婷丁香久久五月婷婷| 91视频免费看| 中文字幕一区二| eeuss鲁片一区二区三区| 国产亚洲欧美色| 国产永久精品大片wwwapp | 日本三级韩国三级欧美三级| 久久久777精品电影网影网| 成人美女在线观看| 欧美在线|欧美| 中文字幕av一区二区三区免费看| 黄色小说综合网站| 精品噜噜噜噜久久久久久久久试看| 无码av免费一区二区三区试看 | 欧美日韩精品免费| 亚洲综合免费观看高清完整版在线 | 色综合中文字幕| 日韩码欧中文字| 日本韩国视频一区二区| 一区二区三区四区激情| 一本色道久久综合精品竹菊| 亚洲精品欧美二区三区中文字幕| 91久久国产最好的精华液| 亚洲高清免费观看高清完整版在线观看 | 不卡电影免费在线播放一区| 日韩精品乱码免费| 亚洲国产精品久久一线不卡| 激情深爱一区二区| 久久亚洲一区二区三区四区| 国产一区二区伦理| 欧美激情中文字幕| 91美女片黄在线观看| 一区二区三区四区精品在线视频| 欧美日韩一二三区| 久久不见久久见免费视频1| 欧美精品一区二区三区蜜桃 | 欧美日韩精品电影| 蜜桃在线一区二区三区| 日本一区二区三区高清不卡| 91片黄在线观看| 天使萌一区二区三区免费观看| 亚洲精品在线观看视频| av亚洲产国偷v产偷v自拍| 午夜精品123|