tiffifdentry.java
来自「world wind java sdk 源码」· Java 代码 · 共 45 行
JAVA
45 行
/* Copyright (C) 2001, 2008 United States Government as represented bythe Administrator of the National Aeronautics and Space Administration.All Rights Reserved. */package gov.nasa.worldwind.formats.tiff;/** * A bag for holding individual entries from a Tiff ImageFileDirectory. * * @author brownrigg * @version $Id: TiffIFDEntry.java 6539 2008-09-10 16:39:49Z rick $ */public class TiffIFDEntry{ public TiffIFDEntry(int tag, int type, long count, long valOffset) throws IllegalArgumentException { this.tag = tag; this.type = type; this.count = count; this.valOffset = valOffset; } public long asLong() throws IllegalStateException { if (this.type != TiffTypes.SHORT && this.type != TiffTypes.LONG) throw new IllegalStateException("Attempt to access Tiff IFD-entry as int: tag/type=" + Long.toHexString(tag) + "/" + type); if (this.type == TiffTypes.SHORT && this.count == 1) return valOffset >> 16; else return valOffset; } public long asOffset() { return valOffset; } // package visibility is intended... int tag; int type; long count; long valOffset;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?