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

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

?? omraster.java

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
// **********************************************************************// // <copyright>// //  BBN Technologies//  10 Moulton Street//  Cambridge, MA 02138//  (617) 873-8000// //  Copyright (C) BBNT Solutions LLC. All rights reserved.// // </copyright>// **********************************************************************// // $Source: /cvs/distapps/openmap/src/openmap/com/bbn/openmap/omGraphics/OMRaster.java,v $// $RCSfile: OMRaster.java,v $// $Revision: 1.2.2.4 $// $Date: 2005/01/10 16:59:45 $// $Author: dietrick $// // **********************************************************************package com.bbn.openmap.omGraphics;import java.awt.Color;import java.awt.Image;import java.awt.image.BufferedImage;import java.io.Serializable;import javax.swing.ImageIcon;import com.bbn.openmap.MoreMath;import com.bbn.openmap.proj.Projection;import com.bbn.openmap.util.Debug;/** * The OMRaster object lets you create multi-colored images. An image * is a two dimensional array of pixel values that correspond to some * color values. The pixels are used from the top left, across each * row to the right, down to the bottom row. * <p> * There are two colormodels that are implemented in OMRaster - the * direct colormodel and the indexed colormodel. The direct colormodel * is implemented when the pixel values contain the actual * java.awt.Color values for the image. The indexed colormodel is * implemented when the pixel values are actually indexes into an * array of java.awt.Colors. NOTE: The direct colormodel OMRaster is * faster to display, because it doesn't need to take the time to * resolve the colortable values into pixels. * <P> *  * For direct colormodel images: If you pass in a null pix or a pix * with a zero length, the object will create the pixels for you but * will not general a renderable version of the object. You will need * to call render before generate after the pixels have been set. This * feature is for cached rasters, where the content may be changed * later. Use this (null pix) if you are building images in a cache, * for tiled mapping data or something else where the data is not yet * known. The memory for the pixels will be allocated, and then they * can be set with image data later when a database is accessed. * <P> *  * For ImageIcon OMRasters: Using an ImageIcon to create an OMRaster * gives you the ability to put an image on the screen based on an * ImageIcon made from file or URL. The OMRaster uses this ImageIcon * as is - there is no opportunity to change any parameters of this * image. So set the colors, transparency, etc. before you create the * OMRaster. * <P> *  * For indexed colormodel images: If you pass in an empty byte array, * a byte array will be created based on the width and height. You * will have to resolve empty colortables and set the pixels later. * Use this method (null bytes) if you are building images in a cache, * for tiled mapping data or something else where the data is not yet * known. The memory for the pixels will be allocated, and then they * can be set with image data later when a database is accessed. *  * There is the ability to add a filter to the image, to change it's * appearance for rendering. The most common filter, which is included * as a kind of default, is the scale filter. Filtering the * OMRasterObject replaces the bitmap variable, which is the internal * java.awt.Image used for rendering. For OMRasters created with * pixels, or with the colortable and the colortable index, the * original data is left intact, and can be recreated later, or * rescaled on the fly, because the internal bitmap will be recreated * prior to rescaling. For OMRasters created by ImageIcons or Images, * though, you'll need to hold on to the original Image. The internal * version is replaced by the filtered version. *  * @see OMRasterObject */public class OMRaster extends OMRasterObject implements Serializable {    /**     * The integer colors that are needed in a java colortable. The     * Color[] that gets passed into some of the constructors goes to     * build this, but this array is really used to build the image     * pixel array.     */    protected int[] colors = null;    /**     * The transparency of the image. If this is set to anything less     * than 255, this value is used for all colors in the image. If it     * is set to 255, then the alpha value in each Color regulates the     * transparency of the image. The value of this variable should     * stay in the range: <code>0 &lt;= transparent &lt;= 255</code>     */    protected int transparent = 255;    /**     * Constuct a blank OMRaster, to be filled in with setX calls.     */    public OMRaster() {        super(RENDERTYPE_UNKNOWN, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);    }    ///////////////////////////////////// INT PIXELS - DIRECT    // COLORMODEL    /**     * Creates an OMRaster images, Lat/Lon placement with a direct     * colormodel.     *      * @param lt latitude of the top of the image.     * @param ln longitude of the left side of the image.     * @param w width of the image, in pixels.     * @param h height of the image, in pixels.     * @param pix color values for the pixels.     * @see #setPixel     */    public OMRaster(float lt, float ln, int w, int h, int[] pix) {        super(RENDERTYPE_LATLON, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);        setColorModel(COLORMODEL_DIRECT);        lat = lt;        lon = ln;        width = w;        height = h;        pixels = pix;        if (pixels == null || pixels.length == 0)            pixels = new int[height * width];    }    /**     * Create an OMRaster image, XY placement with a direct     * colormodel.     *      * @param x1 window location of the left side of the image.     * @param y1 window location of the top of the image.     * @param w width of the image, in pixels.     * @param h height of the image, in pixels.     * @param pix color values for the pixels.     * @see #setPixel     */    public OMRaster(int x1, int y1, int w, int h, int[] pix) {        super(RENDERTYPE_XY, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);        setColorModel(COLORMODEL_DIRECT);        x = x1;        y = y1;        width = w;        height = h;        pixels = pix;        if (pixels == null || pixels.length == 0)            pixels = new int[height * width];    }    /**     * Create an OMRaster, Lat/lon placement with XY offset with a     * direct colormodel.     *      * @param lt latitude of the top of the image, before the offset.     * @param ln longitude of the left side of the image, before the     *        offset.     * @param offset_x1 number of pixels to move image to the right.     * @param offset_y1 number of pixels to move image down.     * @param w width of the image, in pixels.     * @param h height of the image, in pixels.     * @param pix color values for the pixels.     * @see #setPixel     */    public OMRaster(float lt, float ln, int offset_x1, int offset_y1, int w,            int h, int[] pix) {        super(RENDERTYPE_OFFSET, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);        setColorModel(COLORMODEL_DIRECT);        lat = lt;        lon = ln;        x = offset_x1;        y = offset_y1;        width = w;        height = h;        pixels = pix;        if (pixels == null || pixels.length == 0) {            pixels = new int[height * width];        }    }    ////////////////////////////////////// IMAGEICON    /**     * Create an OMRaster, Lat/Lon placement with an ImageIcon.     *      * @param lt latitude of the top of the image.     * @param ln longitude of the left side of the image.     * @param ii ImageIcon used for the image.     */    public OMRaster(float lt, float ln, ImageIcon ii) {        this(lt, ln, ii.getImage());    }    /**     * Create an OMRaster, Lat/Lon placement with an Image.     *      * @param lt latitude of the top of the image.     * @param ln longitude of the left side of the image.     * @param ii Image used for the image.     */    public OMRaster(float lt, float ln, Image ii) {        super(RENDERTYPE_LATLON, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);        setColorModel(COLORMODEL_IMAGEICON);        lat = lt;        lon = ln;        setImage(ii);    }    /**     * Create an OMRaster image, X/Y placement with an ImageIcon.     *      * @param x1 window location of the left side of the image.     * @param y1 window location of the top of the image.     * @param ii ImageIcon used for the image.     */    public OMRaster(int x1, int y1, ImageIcon ii) {        this(x1, y1, ii.getImage());    }    /**     * Create an OMRaster image, X/Y placement with an Image.     *      * @param x1 window location of the left side of the image.     * @param y1 window location of the top of the image.     * @param ii Image used for the image.     */    public OMRaster(int x1, int y1, Image ii) {        super(RENDERTYPE_XY, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);        setColorModel(COLORMODEL_IMAGEICON);        x = x1;        y = y1;        setImage(ii);    }    /**     * Create an OMRaster, Lat/Lon with X/Y placement with an     * ImageIcon.     *      * @param lt latitude of the top of the image, before the offset.     * @param ln longitude of the left side of the image, before the     *        offset.     * @param offset_x1 number of pixels to move image to the right.     * @param offset_y1 number of pixels to move image down.     * @param ii ImageIcon used for the image.     */    public OMRaster(float lt, float ln, int offset_x1, int offset_y1,            ImageIcon ii) {        this(lt, ln, offset_x1, offset_y1, ii.getImage());    }    /**     * Create an OMRaster, Lat/Lon with X/Y placement with an Image.     * Make sure that the Image is complete( if being loaded over the     * internet) and ready to be drawn. Otherwise, you have to figure     * out when the Image is complete, so that you can get the layer     * to paint it! Use the ImageIcon constructor if you don't mind     * blocking to wait for the pixels to arrive.     *      * @param lt latitude of the top of the image, before the offset.     * @param ln longitude of the left side of the image, before the     *        offset.     * @param offset_x1 number of pixels to move image to the right.     * @param offset_y1 number of pixels to move image down.     * @param ii Image used for the image.     */    public OMRaster(float lt, float ln, int offset_x1, int offset_y1, Image ii) {        super(RENDERTYPE_OFFSET, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);        setColorModel(COLORMODEL_IMAGEICON);        lat = lt;        lon = ln;        x = offset_x1;        y = offset_y1;        setImage(ii);    }    ////////////////////////////////////// BYTE PIXELS with    // COLORTABLE    /**     * Lat/Lon placement with a indexed colormodel, which is using a     * colortable and a byte array to contruct the int[] pixels.     *      * @param lt latitude of the top of the image.     * @param ln longitude of the left side of the image.     * @param w width of the image, in pixels.     * @param h height of the image, in pixels.     * @param bytes colortable index values for the pixels.     * @param colorTable color array corresponding to bytes     * @param trans transparency of image.     * @see #setPixel     */    public OMRaster(float lt, float ln, int w, int h, byte[] bytes,            Color[] colorTable, int trans) {        super(RENDERTYPE_LATLON, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);        setColorModel(COLORMODEL_INDEXED);        lat = lt;        lon = ln;        width = w;        height = h;        bits = bytes;        transparent = trans;        if (colorTable != null) {            setColors(colorTable);        }        if (bits != null && bits.length != 0) {            if (colorTable != null && colors.length != 0) {                computePixels();            }        } else {            bits = new byte[height * width];        }    }    /**     * XY placement with a indexed colormodel, which is using a     * colortable and a byte array to contruct the int[] pixels.     *      * @param x1 window location of the left side of the image.     * @param y1 window location of the top of the image.     * @param w width of the image, in pixels.     * @param h height of the image, in pixels.     * @param bytes colortable index values for the pixels.     * @param colorTable color array corresponding to bytes     * @param trans transparency of image.     * @see #setPixel     */    public OMRaster(int x1, int y1, int w, int h, byte[] bytes,            Color[] colorTable, int trans) {        super(RENDERTYPE_XY, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);        setColorModel(COLORMODEL_INDEXED);        x = x1;        y = y1;        width = w;        height = h;        bits = bytes;        transparent = trans;        if (colorTable != null) {            setColors(colorTable);        }        if (bits != null && bits.length != 0) {            if (colorTable != null && colors.length != 0) {                computePixels();            }        } else {            bits = new byte[height * width];        }    }    /**     * Lat/lon placement with XY offset with a indexed colormodel,     * which is using a colortable and a byte array to construct the     * int[] pixels.     *      * @param lt latitude of the top of the image, before the offset.     * @param ln longitude of the left side of the image, before the     *        offset.     * @param offset_x1 number of pixels to move image to the right.     * @param offset_y1 number of pixels to move image down.     * @param w width of the image, in pixels.     * @param h height of the image, in pixels.     * @param bytes colortable index values for the pixels.     * @param colorTable color array corresponding to bytes     * @param trans transparency of image.     * @see #setPixel     */    public OMRaster(float lt, float ln, int offset_x1, int offset_y1, int w,            int h, byte[] bytes, Color[] colorTable, int trans) {        super(RENDERTYPE_OFFSET, LINETYPE_UNKNOWN, DECLUTTERTYPE_NONE);        setColorModel(COLORMODEL_INDEXED);        lat = lt;        lon = ln;        x = offset_x1;        y = offset_y1;        width = w;        height = h;        transparent = trans;        bits = bytes;        if (colorTable != null) {            setColors(colorTable);        }        if (bits != null && bits.length != 0) {            if (colorTable != null && colors.length != 0) {                computePixels();            }        } else {            bits = new byte[height * width];        }    }    //////////////////////////////////////////////////////    /**     * Just a simple check to see if the x, y pair actually fits into

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲免费毛片网站| 一本一道波多野结衣一区二区| 午夜激情久久久| 五月开心婷婷久久| 91精品国产麻豆国产自产在线| 2024国产精品| 国产精品国产三级国产aⅴ原创 | 成人国产在线观看| 欧美日韩国产免费| ww亚洲ww在线观看国产| 国产成人精品网址| 91精品国产综合久久小美女| 亚洲三级电影全部在线观看高清| 国产在线视频不卡二| 91传媒视频在线播放| 中文字幕一区二区视频| 六月丁香婷婷久久| 在线观看国产91| 亚洲欧美在线aaa| 欧美午夜一区二区| 亚洲一区二区三区中文字幕 | 国产精品99久久久| 欧美日韩成人综合| 国产精品夜夜嗨| 亚洲精品第一国产综合野| a在线欧美一区| 国产欧美一区二区精品性色| 久国产精品韩国三级视频| 在线不卡的av| 综合婷婷亚洲小说| 9191成人精品久久| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 日本午夜一区二区| 91成人看片片| 国产一区二区三区高清播放| 久久久久国产精品厨房| 久久精品国产亚洲一区二区三区| 国产丝袜美腿一区二区三区| 国产原创一区二区三区| 亚洲乱码日产精品bd| 久久久久久亚洲综合影院红桃 | 91精品欧美综合在线观看最新 | 丝袜诱惑亚洲看片| 国产传媒久久文化传媒| 中文字幕一区二区在线播放| 精品久久国产字幕高潮| 日本亚洲欧美天堂免费| 中文一区二区完整视频在线观看| 国产盗摄视频一区二区三区| 亚洲成人资源网| 91精品国产福利| 99国产一区二区三精品乱码| 中文字幕日本不卡| 26uuu精品一区二区三区四区在线| 欧美性色欧美a在线播放| 福利一区二区在线| 一片黄亚洲嫩模| 在线电影国产精品| 色哟哟国产精品| 成人免费的视频| 日韩欧美亚洲国产另类| 欧美精品自拍偷拍动漫精品| 不卡一区二区中文字幕| 韩国欧美国产1区| 精品一区二区三区日韩| 日韩av电影天堂| 日韩专区在线视频| 午夜精品一区二区三区免费视频| 亚洲免费在线视频| 成人免费小视频| 国产精品久久久爽爽爽麻豆色哟哟 | 精品久久一区二区| 91精品在线免费观看| 欧美主播一区二区三区美女| 欧美二区在线观看| 欧美日韩一本到| 日韩av高清在线观看| 亚欧色一区w666天堂| 亚洲午夜激情网页| 久久先锋影音av鲁色资源| 精品少妇一区二区三区视频免付费| 欧美日韩不卡一区二区| 在线观看日韩国产| 床上的激情91.| 成人激情综合网站| 色婷婷久久一区二区三区麻豆| av亚洲精华国产精华精华| 91影院在线观看| 美女精品一区二区| 亚洲欧美日韩一区| 亚洲曰韩产成在线| 日韩中文字幕一区二区三区| 美女网站在线免费欧美精品| 国精产品一区一区三区mba桃花 | 久久嫩草精品久久久精品| 国产欧美日韩在线| 亚洲私人黄色宅男| 午夜精品久久久久久久久久| 麻豆久久一区二区| 国产v综合v亚洲欧| 在线精品视频免费观看| 日韩欧美一区中文| 色婷婷综合久久久中文字幕| 欧美三级乱人伦电影| 日韩色在线观看| 欧美国产一区视频在线观看| 一区二区三区中文字幕| 日韩电影免费在线观看网站| 国产精品1区2区| 色先锋久久av资源部| 欧美一区二区三区精品| 国产精品色噜噜| 中文字幕欧美三区| 一区二区三区四区高清精品免费观看| 日韩福利电影在线| 豆国产96在线|亚洲| 欧美午夜影院一区| 国产午夜精品福利| 丝瓜av网站精品一区二区 | 视频一区二区三区入口| 国产福利一区在线观看| 欧美视频一区二区三区在线观看| 久久综合九色欧美综合狠狠| 亚洲精品午夜久久久| 国产在线精品一区二区三区不卡| 色综合天天综合网国产成人综合天| 高清shemale亚洲人妖| 在线观看欧美日本| 久久九九全国免费| 日产欧产美韩系列久久99| 成人性生交大合| 日韩精品中文字幕在线不卡尤物| 亚洲人快播电影网| 国产高清久久久| 7777精品伊人久久久大香线蕉超级流畅| 久久久久九九视频| 免费高清在线一区| 国产一区二区看久久| 欧洲精品一区二区三区在线观看| 精品国产91九色蝌蚪| 国产无一区二区| 免费一级片91| 欧美精品第1页| 一区二区三区四区乱视频| 福利一区福利二区| 精品久久国产97色综合| 日本最新不卡在线| 欧美三级蜜桃2在线观看| 亚洲精品国产a久久久久久| 国产成人啪免费观看软件| 欧美大胆人体bbbb| 天天色天天爱天天射综合| 91电影在线观看| 一区二区三区免费在线观看| av午夜精品一区二区三区| 国产三级精品三级在线专区| 国产激情精品久久久第一区二区 | 亚洲国产日韩精品| 91久久精品一区二区三| 亚洲视频一区二区在线| 成人短视频下载| 国产欧美一区二区精品仙草咪| 国产尤物一区二区| 久久久www成人免费毛片麻豆| 极品少妇xxxx精品少妇偷拍| 欧美tickling挠脚心丨vk| 蜜臀久久99精品久久久久久9| 91精品在线免费| 奇米亚洲午夜久久精品| 日韩三级.com| 国产精品一区二区视频| 国产人成亚洲第一网站在线播放| 国产在线麻豆精品观看| 欧美激情自拍偷拍| 99久久久精品免费观看国产蜜| 国产精品久久久久久久久果冻传媒| 成人av一区二区三区| 亚洲欧洲日本在线| 在线这里只有精品| 日韩中文字幕1| 精品国产3级a| www.综合网.com| 亚洲激情av在线| 在线播放日韩导航| 久久精工是国产品牌吗| 久久久久99精品国产片| 丰满少妇在线播放bd日韩电影| 中文字幕日韩一区| 欧美日韩精品电影| 激情深爱一区二区| 国产精品人人做人人爽人人添| 91国产丝袜在线播放| 日本va欧美va精品| 国产午夜精品一区二区三区嫩草| 99麻豆久久久国产精品免费 | 欧美无砖砖区免费| 蜜臀精品一区二区三区在线观看 | 亚洲国产欧美日韩另类综合| 日韩欧美视频在线| 99国内精品久久|