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

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

?? thumbnail.java

?? java 報表 to office文檔: 本包由java語言開發
?? JAVA
字號:
/* ====================================================================   Copyright 2002-2004   Apache Software Foundation   Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0   Unless required by applicable law or agreed to in writing, software   distributed under the License is distributed on an "AS IS" BASIS,   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.   See the License for the specific language governing permissions and   limitations under the License.==================================================================== */        package org.apache.poi.hpsf;import org.apache.poi.util.LittleEndian;/** * <p>Class to manipulate data in the Clipboard Variant ({@link * Variant#VT_CF VT_CF}) format.</p> * * @author Drew Varner (Drew.Varner inOrAround sc.edu) * @see SummaryInformation#getThumbnail() * @version $Id: Thumbnail.java,v 1.8 2004/12/28 20:20:23 klute Exp $ * @since 2002-04-29 */public class Thumbnail{    /**     * <p>Offset in bytes where the Clipboard Format Tag starts in the     * <code>byte[]</code> returned by {@link     * SummaryInformation#getThumbnail()}</p>     */    public static int OFFSET_CFTAG = 4;    /**     * <p>Offset in bytes where the Clipboard Format starts in the     * <code>byte[]</code> returned by {@link     * SummaryInformation#getThumbnail()}</p>     *     * <p>This is only valid if the Clipboard Format Tag is {@link     * #CFTAG_WINDOWS}</p>     */    public static int OFFSET_CF = 8;    /**     * <p>Offset in bytes where the Windows Metafile (WMF) image data     * starts in the <code>byte[]</code> returned by {@link     * SummaryInformation#getThumbnail()}</p>     *     * <p>There is only WMF data at this point in the     * <code>byte[]</code> if the Clipboard Format Tag is {@link     * #CFTAG_WINDOWS} and the Clipboard Format is {@link     * #CF_METAFILEPICT}.</p>     *     * <p>Note: The <code>byte[]</code> that starts at     * <code>OFFSET_WMFDATA</code> and ends at     * <code>getThumbnail().length - 1</code> forms a complete WMF     * image. It can be saved to disk with a <code>.wmf</code> file     * type and read using a WMF-capable image viewer.</p>     */    public static int OFFSET_WMFDATA = 20;    /**     * <p>Clipboard Format Tag - Windows clipboard format</p>     *     * <p>A <code>DWORD</code> indicating a built-in Windows clipboard     * format value</p>     */    public static int CFTAG_WINDOWS = -1;    /**     * <p>Clipboard Format Tag - Macintosh clipboard format</p>     *     * <p>A <code>DWORD</code> indicating a Macintosh clipboard format     * value</p>     */    public static int CFTAG_MACINTOSH = -2;    /**     * <p>Clipboard Format Tag - Format ID</p>     *     * <p>A GUID containing a format identifier (FMTID). This is     * rarely used.</p>     */    public static int CFTAG_FMTID = -3;    /**     * <p>Clipboard Format Tag - No Data</p>     *     * <p>A <code>DWORD</code> indicating No data. This is rarely     * used.</p>     */    public static int CFTAG_NODATA = 0;    /**     * <p>Clipboard Format - Windows metafile format. This is the     * recommended way to store thumbnails in Property Streams.</p>     *     * <p><strong>Note:</strong> This is not the same format used in     * regular WMF images. The clipboard version of this format has an     * extra clipboard-specific header.</p>     */    public static int CF_METAFILEPICT = 3;    /**     * <p>Clipboard Format - Device Independent Bitmap</p>     */    public static int CF_DIB = 8;    /**     * <p>Clipboard Format - Enhanced Windows metafile format</p>     */    public static int CF_ENHMETAFILE = 14;    /**     * <p>Clipboard Format - Bitmap</p>     *     * <p>Obsolete, see <a     * href="msdn.microsoft.com/library/en-us/dnw98bk/html/clipboardoperations.asp     * target="_blank">msdn.microsoft.com/library/en-us/dnw98bk/html/clipboardoperations.asp</a>.</p>     */    public static int CF_BITMAP = 2;    /**     * <p>A <code>byte[]</code> to hold a thumbnail image in ({@link     * Variant#VT_CF VT_CF}) format.</p>     */    private byte[] thumbnailData = null;    /**     * <p>Default Constructor. If you use it then one you'll have to add     * the thumbnail <code>byte[]</code> from {@link     * SummaryInformation#getThumbnail()} to do any useful     * manipulations, otherwise you'll get a     * <code>NullPointerException</code>.</p>     */    public Thumbnail()    {        super();    }    /**     * <p>Creates a <code>Thumbnail</code> instance and initializes     * with the specified image bytes.</p>     *     * @param thumbnailData The thumbnail data     */    public Thumbnail(final byte[] thumbnailData)    {        this.thumbnailData = thumbnailData;    }    /**     * <p>Returns the thumbnail as a <code>byte[]</code> in {@link     * Variant#VT_CF VT_CF} format.</p>     *     * @return The thumbnail value     * @see SummaryInformation#getThumbnail()     */    public byte[] getThumbnail()    {        return thumbnailData;    }    /**     * <p>Sets the Thumbnail's underlying <code>byte[]</code> in     * {@link Variant#VT_CF VT_CF} format.</p>     *     * @param thumbnail The new thumbnail value     * @see SummaryInformation#getThumbnail()     */    public void setThumbnail(final byte[] thumbnail)    {        this.thumbnailData = thumbnail;    }    /**     * <p>Returns an <code>int</code> representing the Clipboard     * Format Tag</p>     *     * <p>Possible return values are:</p>     * <ul>     *  <li>{@link #CFTAG_WINDOWS CFTAG_WINDOWS}</li>     *  <li>{@link #CFTAG_MACINTOSH CFTAG_MACINTOSH}</li>     *  <li>{@link #CFTAG_FMTID CFTAG_FMTID}</li>     *  <li>{@link #CFTAG_NODATA CFTAG_NODATA}</li>     * </ul>     *     * @return A flag indicating the Clipboard Format Tag     */    public long getClipboardFormatTag()    {        long clipboardFormatTag = LittleEndian.getUInt(getThumbnail(),                                                       OFFSET_CFTAG);        return clipboardFormatTag;    }    /**     * <p>Returns an <code>int</code> representing the Clipboard     * Format</p>     *     * <p>Will throw an exception if the Thumbnail's Clipboard Format     * Tag is not {@link Thumbnail#CFTAG_WINDOWS CFTAG_WINDOWS}.</p>     *     * <p>Possible return values are:</p>     *     * <ul>     *  <li>{@link #CF_METAFILEPICT CF_METAFILEPICT}</li>     *  <li>{@link #CF_DIB CF_DIB}</li>     *  <li>{@link #CF_ENHMETAFILE CF_ENHMETAFILE}</li>     *  <li>{@link #CF_BITMAP CF_BITMAP}</li>     * </ul>     *     * @return a flag indicating the Clipboard Format     * @throws HPSFException if the Thumbnail isn't CFTAG_WINDOWS     */    public long getClipboardFormat() throws HPSFException    {        if (!(getClipboardFormatTag() == CFTAG_WINDOWS))            throw new HPSFException("Clipboard Format Tag of Thumbnail must " +                                    "be CFTAG_WINDOWS.");        return LittleEndian.getUInt(getThumbnail(), OFFSET_CF);    }    /**     * <p>Returns the Thumbnail as a <code>byte[]</code> of WMF data     * if the Thumbnail's Clipboard Format Tag is {@link     * #CFTAG_WINDOWS CFTAG_WINDOWS} and its Clipboard Format is     * {@link #CF_METAFILEPICT CF_METAFILEPICT}</p> <p>This     * <code>byte[]</code> is in the traditional WMF file, not the     * clipboard-specific version with special headers.</p>     *     * <p>See <a href="http://www.wvware.com/caolan/ora-wmf.html"     * target="_blank">http://www.wvware.com/caolan/ora-wmf.html</a>     * for more information on the WMF image format.</p>     *     * @return A WMF image of the Thumbnail     * @throws HPSFException if the Thumbnail isn't CFTAG_WINDOWS and     * CF_METAFILEPICT     */    public byte[] getThumbnailAsWMF() throws HPSFException    {        if (!(getClipboardFormatTag() == CFTAG_WINDOWS))            throw new HPSFException("Clipboard Format Tag of Thumbnail must " +                                    "be CFTAG_WINDOWS.");        if (!(getClipboardFormat() == CF_METAFILEPICT))            throw new HPSFException("Clipboard Format of Thumbnail must " +                                    "be CF_METAFILEPICT.");        else        {            byte[] thumbnail = getThumbnail();            int wmfImageLength = thumbnail.length - OFFSET_WMFDATA;            byte[] wmfImage = new byte[wmfImageLength];            System.arraycopy(thumbnail,                             OFFSET_WMFDATA,                             wmfImage,                             0,                             wmfImageLength);            return wmfImage;        }    }}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91社区在线播放| 一区二区三区四区视频精品免费 | 免费成人在线视频观看| 欧美日韩综合一区| 天天操天天干天天综合网| 69堂精品视频| 激情综合色综合久久| 久久久精品黄色| 波多野结衣中文字幕一区 | 国产精品成人免费在线| 丰满放荡岳乱妇91ww| 中文字幕亚洲精品在线观看| 色综合久久综合| 免费在线看一区| 欧美激情一区二区三区在线| 91在线你懂得| 日韩国产欧美在线视频| 久久久综合精品| 色综合天天综合网天天狠天天| 一区二区三区欧美日| 欧美一卡二卡在线| 成人av在线看| 日日摸夜夜添夜夜添国产精品| 久久香蕉国产线看观看99| 色婷婷综合久久久中文字幕| 久久国产精品色| 亚洲精品久久7777| 欧美精品一区二区三| 色综合久久综合网| 国模无码大尺度一区二区三区| 亚洲欧美日韩在线播放| 日韩精品在线看片z| 91免费看视频| 国内精品视频666| 亚洲综合在线免费观看| 欧美精品一区二区三区很污很色的| 色综合视频在线观看| 九九视频精品免费| 亚洲精品成人悠悠色影视| 日韩视频免费直播| 在线看日本不卡| 成人晚上爱看视频| 麻豆精品蜜桃视频网站| 一区2区3区在线看| 偷窥国产亚洲免费视频| 中文字幕欧美激情一区| 日韩欧美国产一二三区| 在线国产电影不卡| 成人动漫精品一区二区| 狠狠色丁香久久婷婷综合_中| 亚洲图片有声小说| 亚洲人妖av一区二区| 精品理论电影在线| 91精品黄色片免费大全| 欧美视频精品在线观看| 国产精品综合在线视频| 蜜臀av在线播放一区二区三区| 怡红院av一区二区三区| 国产精品久久久久久亚洲毛片| 精品欧美一区二区久久| 欧美精品一二三| 欧美性xxxxxxxx| 99精品热视频| 成人av手机在线观看| 国产一区二区电影| 久久精品国产99| 秋霞影院一区二区| 五月婷婷激情综合网| 亚洲chinese男男1069| 一区二区三区美女| 亚洲一区欧美一区| 亚洲一区二区三区影院| 亚洲精品第一国产综合野| 亚洲日本在线天堂| 亚洲欧美另类久久久精品| 中文字幕一区二区三区在线观看 | 日韩欧美一区二区视频| 4438亚洲最大| 欧美一区二区精美| 日韩欧美黄色影院| 精品国产91洋老外米糕| 久久久噜噜噜久噜久久综合| 欧美成人性战久久| 欧美精品一区二区三区视频| 久久婷婷综合激情| 国产精品欧美综合在线| 1024亚洲合集| 亚洲国产日韩在线一区模特| 日日摸夜夜添夜夜添亚洲女人| 日本中文在线一区| 狠狠色伊人亚洲综合成人| 国产白丝精品91爽爽久久| zzijzzij亚洲日本少妇熟睡| 91免费观看视频| 欧美日韩国产一区二区三区地区| 欧美日韩一级视频| 日韩午夜在线观看| 久久久三级国产网站| 国产精品福利一区二区三区| 亚洲男人电影天堂| 日韩高清在线一区| 国产乱对白刺激视频不卡| 成人av网址在线观看| 久久久精品tv| 中文字幕亚洲成人| 日韩专区欧美专区| 国产乱码字幕精品高清av| av资源站一区| 欧美一区二区三区播放老司机| 国产亚洲视频系列| 一区二区三区日韩欧美| 美女任你摸久久| 成人一二三区视频| 777欧美精品| 国产精品视频看| 日韩影院免费视频| 国产成+人+日韩+欧美+亚洲| 久久久激情视频| 18成人在线观看| 美腿丝袜一区二区三区| 国产成人精品网址| 欧美午夜在线观看| 国产精品毛片大码女人| 亚洲综合另类小说| 秋霞电影一区二区| 不卡电影一区二区三区| 欧美精品色一区二区三区| 国产午夜一区二区三区| 视频一区欧美精品| 不卡的av电影| 日本道精品一区二区三区| 69久久夜色精品国产69蝌蚪网| 欧美—级在线免费片| 成人精品一区二区三区四区| 国产精品一区二区91| 亚洲欧洲精品一区二区精品久久久 | 夜夜嗨av一区二区三区| 久久er精品视频| 91官网在线观看| 欧美一级一区二区| av一区二区不卡| 福利一区福利二区| 视频一区欧美精品| 夜夜嗨av一区二区三区中文字幕| 国产老女人精品毛片久久| 欧美一区二区在线视频| 一区二区三区日本| 成人91在线观看| 26uuu国产日韩综合| 日韩成人dvd| 欧美精选一区二区| 亚洲国产一区视频| 91小视频在线观看| 国产精品免费久久久久| 国产精品伊人色| 2017欧美狠狠色| 国产白丝精品91爽爽久久| 国产精品免费视频网站| 91天堂素人约啪| 免费视频一区二区| 国产女主播一区| 91亚洲精品久久久蜜桃网站 | 蜜臀久久久久久久| 视频在线观看国产精品| 韩国女主播一区| 在线免费精品视频| 精品国产乱码久久久久久蜜臀| 中文字幕综合网| 天天综合色天天综合| 精品国产污网站| 日韩精品资源二区在线| 欧美成人bangbros| 日韩欧美一二区| 日韩一区二区三区在线| 精品国产乱码久久久久久久久| 日韩一区二区在线观看| 91久久奴性调教| 色一区在线观看| 欧美色欧美亚洲另类二区| 欧美性色黄大片| 日韩亚洲欧美高清| 欧美丰满少妇xxxbbb| 中文字幕永久在线不卡| 亚洲va欧美va人人爽| 国产精品影视网| 欧美一区二区三区日韩视频| 久久久久久亚洲综合影院红桃| 日韩欧美一区二区三区在线| 中文字幕色av一区二区三区| 天使萌一区二区三区免费观看| 亚洲日本丝袜连裤袜办公室| 国产一区三区三区| 欧美最猛黑人xxxxx猛交| 国产精品久久午夜| 毛片av一区二区三区| 欧亚洲嫩模精品一区三区| 亚洲欧美在线aaa| 国产一区二区福利| 欧美性大战久久久| 亚洲乱码精品一二三四区日韩在线|