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

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

?? rpfcolortable.java

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
// **********************************************************************// // <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/layer/rpf/RpfColortable.java,v $// $RCSfile: RpfColortable.java,v $// $Revision: 1.3.2.1 $// $Date: 2004/10/14 18:27:14 $// $Author: dietrick $// // **********************************************************************/* * The meat of this code is based on source code provided by * The MITRE Corporation, through the browse application source * code.  Many thanks to Nancy Markuson who provided BBN with the * software, and Theron Tock, who wrote the software, and to * Daniel Scholten, who revised it - (c) 1994 The MITRE * Corporation for those parts, and used/distributed with permission. */package com.bbn.openmap.layer.rpf;import java.awt.Color;import java.io.IOException;import java.io.FileNotFoundException;import java.io.File;import com.bbn.openmap.io.BinaryBufferedFile;import com.bbn.openmap.io.BinaryFile;import com.bbn.openmap.io.FormatException;import com.bbn.openmap.util.Debug;/** * Set up the colors used in creating the images. They are created * from RGB value arrays read in from the RPF file. If the number of * colors that are allowed is less than 216, then the RpfColortable * looks inside the RpfFile and uses the color conversion tables * inside. There will still be 216 color indexes, but some of the * colors will be duplicates. */public class RpfColortable {    public final static int CADRG_COLORS = 216;    public final static int COLORS_216 = 0;    public final static int COLORS_32 = 1;    public final static int COLORS_16 = 2;    public final static int CIB_SPEC_CODE_ID = 3;    public final static int DEFAULT_OPAQUENESS = 255;    /**     * Color conversion table (to be filled) from within frame,     * colortable section. The colortable is always 216 entries long.     * If you want fewer colors, some of the entries are duplicated.     */    public int[] colorConvTable = new int[CADRG_COLORS];    /** Index to use a color conversion table, and if so, which one. */    protected int reducedColorTable = COLORS_216;    protected int numColors = 0;    protected boolean Cib = false;    protected int opaqueness = DEFAULT_OPAQUENESS;    /** The actual OMColors to use in the image construction. */    public Color[] colors = null;    /** Zone ID for these colors. */    public char zone;    /** Chart Series Code for these colors. */    public String seriesCode;    /**     * The index of the A.TOC file in the RpfTocHandler being used for     * the current colors.     */    protected int tocNumber = -1;    /**     * The index of the RpfEntry in the A.TOC file being used for the     * current colors.     */    protected int entryNumber = -1;    public RpfColortable() {        this(CADRG_COLORS, DEFAULT_OPAQUENESS, false);    }    public RpfColortable(int nColors) {        this(nColors, DEFAULT_OPAQUENESS, false);    }    public RpfColortable(int nColors, int opaque, boolean cib) {        setNumColors(nColors);        setOpaqueness(opaque);        setCib(cib);    }    /**     * Set the alpha values of the OMColors, which governs the     * transparency/opaqueness of the images.     *      * @param value index between 0-255 (0 is transparent, 255 is     *        opaque)     */    public void setOpaqueness(int value) {        opaqueness = value;        if (colors != null) {            for (int i = 0; i < colors.length; i++) {                Color tmp = colors[i];                colors[i] = new Color(tmp.getRed(), tmp.getGreen(), tmp.getBlue(), opaqueness);            }        }    }    public int getOpaqueness() {        return opaqueness;    }    /**     * Set the alpha values of the OMColors, which governs the     * transparency/opaqueness of the images. This method lets you set     * the value as a percentage between 0-100.     *      * @param percent index between 0-100 (0 is transparent, 100 is     *        opaque)     */    public void setOpaquePercent(int percent) {        setOpaqueness((int) ((float) (percent * 2.55)));    }    public int getOpaquePercent() {        return (int) ((float) opaqueness * 100.0 / 255.0);    }    public void setNumColors(int numColorsValue) {        numColors = numColorsValue;        if (numColors >= 216)            reducedColorTable = COLORS_216;        else if (numColors >= 32)            reducedColorTable = COLORS_32;        else            reducedColorTable = COLORS_16;    }    /** Returns the number of colors. */    public int getNumColors() {        return numColors;    }    /**     * Returns the color reduction index. These values correspond to     * the constants defined in this class.     */    public int getColorTableReduction() {        return reducedColorTable;    }    /**     * If this object is going to provide colors for CIB imagery, you     * have to let this object know that. Set this to true. It is     * false by default.     *      * @param value true if the colortable will be used for greyscale     *        images.     */    public void setCib(boolean value) {        Cib = value;    }    public boolean isCib() {        return Cib;    }    /**     * Should be set when a new colortable is read in, so that you can     * tell when you don't have to read a new one.     */    public void setATOCIndexes(int tocIndex, int entryIndex) {        tocNumber = tocIndex;        entryNumber = entryIndex;    }    /**     * Return true of the toc index and entry index are the same as     * what the colortable is currently holding.     */    public boolean isSameATOCIndexes(int tocIndex, int entryIndex) {        return (tocIndex == tocNumber && entryIndex == entryNumber);    }    /**     * Not really used, but someone might need them. Returns the A.TOC     * index number of the colors, to compare to see if a new     * colortable is needed.     */    public int getTocNumber() {        return tocNumber;    }    /**     * Not really used, but someone might need them. Returns the A.TOC     * entry number of the colors, to compare to see if a new     * colortable is needed.     */    public int getEntryNumber() {        return entryNumber;    }    /**     * The method to call to read in the colortable from within the     * RPF file. The method will use the input to determine where in     * the file to read from.     *      * @param binFile the file to read it in from.     * @param loc the RpfLocationRecord that tells you where the     *        sections are.     * @return an array of OMColors to use in images.     */    public Color[] parseColorLookUpTable(BinaryFile binFile,                                         RpfFileSections.RpfLocationRecord[] loc) {        if (Debug.debugging("rpfcolortable")) {            Debug.output("RpfColortable:  creating new colors for colortable.");        }        //  change this to the proper color structur        Color[] rgb = new Color[CADRG_COLORS]; /* DKS NEW: 216 */        int i, j;        long ncr;        int red, green, blue, alpha;        int numColorOffsetRecs; // uchar, # of color/gray offset                                // records */        int numColorConvOffsetRecs; //uchar        int offsetRecordLength = 17; //ushort        /* see frame.h */        ColorOffset[] colorOffset;        long colormapOffsetTableOffset; //uint        /* color converter subsection hdr */        long colorConvOffsetTableOffset; //uint        int colorConvOffsetRecl; // ushort        int colorConvRecl; // ushort        boolean foundLUT; /* found lut flag */        if (Debug.debugging("rpfdetail")) {            Debug.output("ENTER PARSE Colortable");        }        try {            /* Go find the color table: loc[0].id=LOC_CLUT */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久午夜精品理论片中文字幕| 欧美性感一区二区三区| 亚洲美女免费视频| yourporn久久国产精品| 精品久久久久久久一区二区蜜臀| 欧美日韩三级在线| 色88888久久久久久影院野外| 成人av免费在线观看| 丁香亚洲综合激情啪啪综合| 成人免费观看av| 国产精品一区二区黑丝| 成人午夜又粗又硬又大| eeuss影院一区二区三区| 99国产精品视频免费观看| 91老司机福利 在线| 色综合久久88色综合天天免费| 色八戒一区二区三区| 色爱区综合激月婷婷| 欧美日韩一卡二卡三卡 | 制服丝袜一区二区三区| 欧美在线视频你懂得| 欧美精品色综合| 日韩一区二区免费在线观看| 欧美一区二区三区在线观看| 日韩一区二区三区免费观看| 久久夜色精品国产欧美乱极品| 国产亚洲欧美一级| 国产精品的网站| 一区二区三区日韩精品| 午夜精品视频在线观看| 看电视剧不卡顿的网站| 粉嫩嫩av羞羞动漫久久久| 99精品国产一区二区三区不卡| 欧美无砖专区一中文字| 欧美xfplay| 亚洲欧洲日韩女同| 亚洲国产一区二区三区| 精品一区二区免费| 91女厕偷拍女厕偷拍高清| 欧美电影影音先锋| 国产视频一区在线播放| 亚洲一区二区三区在线播放| 久久不见久久见免费视频1| 丁香激情综合五月| 欧美性色欧美a在线播放| 亚洲精品在线电影| 亚洲精品一二三四区| 麻豆91免费观看| 99久久婷婷国产综合精品| 欧美一区二区精品在线| 国产欧美精品日韩区二区麻豆天美| 亚洲精品欧美在线| 黄网站免费久久| 欧美午夜电影在线播放| 久久精品免费在线观看| 亚洲一区视频在线| 国产99一区视频免费| 欧美老肥妇做.爰bbww| 中文av一区二区| 丝袜美腿亚洲综合| 91视频com| 久久久久久**毛片大全| 五月激情六月综合| 97成人超碰视| 国产午夜亚洲精品理论片色戒 | 久久99国内精品| 91麻豆精东视频| 精品少妇一区二区三区在线播放 | 粉嫩av亚洲一区二区图片| 91麻豆精品国产91久久久久久| 国产精品欧美久久久久无广告| 美女一区二区久久| 成人自拍视频在线| 欧美一区二区三区视频在线 | 不卡免费追剧大全电视剧网站| 91精品国产综合久久蜜臀| 亚洲欧美日韩中文字幕一区二区三区| 久久99久久99小草精品免视看| 91高清视频在线| 中文字幕亚洲一区二区va在线| 精品一区二区三区香蕉蜜桃 | 欧美大白屁股肥臀xxxxxx| 亚洲精品免费看| 国产69精品久久99不卡| 欧美tickling挠脚心丨vk| 日韩av一区二区三区| 欧美婷婷六月丁香综合色| 亚洲精品高清在线观看| 丁香六月久久综合狠狠色| 久久精品欧美一区二区三区麻豆| 青娱乐精品视频在线| 欧美日韩高清一区二区| 亚洲一区二区三区在线播放| 色屁屁一区二区| 亚洲男人的天堂在线观看| 91玉足脚交白嫩脚丫在线播放| 国产精品视频九色porn| 成人h精品动漫一区二区三区| 久久久久久久久久美女| 狠狠色丁香久久婷婷综合_中| 日韩午夜小视频| 激情深爱一区二区| 日韩欧美一区在线| 强制捆绑调教一区二区| 6080yy午夜一二三区久久| 亚洲成va人在线观看| 欧美日韩成人在线一区| 亚洲福利视频一区二区| 欧美中文字幕一区二区三区| 亚洲成av人片一区二区三区| 欧美日韩精品欧美日韩精品| 天堂成人免费av电影一区| 91精品国产免费| 丝袜诱惑制服诱惑色一区在线观看 | 精品国产成人系列| 日韩精品乱码免费| 日韩一区二区三区三四区视频在线观看 | 国产日韩综合av| 成人免费毛片aaaaa**| 中文在线一区二区| 99精品久久久久久| 国产精品女主播在线观看| 国产成人一区二区精品非洲| 亚洲国产电影在线观看| 色综合久久88色综合天天6 | 日本 国产 欧美色综合| 欧美大片在线观看一区| 国产精品一区二区免费不卡 | 午夜激情综合网| 日韩片之四级片| 一区二区三区欧美视频| 欧美激情一区不卡| 成人一区二区三区中文字幕| 天天影视色香欲综合网老头| 亚洲欧美电影一区二区| 久久影院电视剧免费观看| 欧美一区二区三区在线看| 91精品福利在线| 99精品欧美一区二区蜜桃免费| 老司机精品视频在线| 亚洲欧美一区二区三区国产精品| 一区二区欧美精品| 亚洲免费电影在线| 日韩视频免费观看高清完整版 | 亚洲精品成人少妇| 制服丝袜av成人在线看| 国产精品自拍av| 亚洲精品水蜜桃| 欧美一区二区免费| 99久免费精品视频在线观看| 亚洲第一福利一区| 久久久久久一二三区| 精品国产亚洲在线| 国产成人免费视频精品含羞草妖精| 国产一区二区精品久久99| 成人h精品动漫一区二区三区| 久久嫩草精品久久久久| 97se狠狠狠综合亚洲狠狠| 日韩电影在线免费观看| 国产视频一区在线观看| 欧美欧美欧美欧美| 成人性生交大片免费| 日韩电影在线一区二区| 自拍偷拍亚洲欧美日韩| www日韩大片| 欧美日韩一区二区在线视频| 大桥未久av一区二区三区中文| 亚洲老妇xxxxxx| 欧美国产乱子伦| 欧美电影免费观看高清完整版在线观看 | 亚洲色图在线播放| 欧美白人最猛性xxxxx69交| 91搞黄在线观看| 国产成人啪免费观看软件| 午夜视频一区二区三区| 中文字幕一区二区在线播放| 欧美成人a∨高清免费观看| 欧美撒尿777hd撒尿| 成人av片在线观看| 激情综合色综合久久| 亚洲一区二区中文在线| 国产精品麻豆网站| 2欧美一区二区三区在线观看视频| 欧美网站一区二区| 91同城在线观看| 国产剧情一区二区三区| 蜜臀av性久久久久蜜臀aⅴ | 欧美主播一区二区三区美女| 成人激情图片网| 国产91丝袜在线播放0| 韩国午夜理伦三级不卡影院| 亚洲国产你懂的| 亚洲精品伦理在线| 亚洲同性gay激情无套| 国产色综合一区| 精品久久久久久久人人人人传媒 | 一区二区三区丝袜| 亚洲欧洲日产国产综合网| 中文字幕精品—区二区四季| 国产亚洲1区2区3区|