com.supermap.data
类 PixelFormat

java.lang.Object
  继承者 com.supermap.data.Enum
      继承者 com.supermap.data.PixelFormat

public class PixelFormat
extends Enum

该类定义了栅格与影像数据存储的像素格式类型常量。

光栅数据结构实际上就是像元的阵列,像元(或像素)是光栅数据的最基本信息存储单位。在 SuperMap 中有两种类型的光栅数据:栅格数据集(DatasetGrid)和影像数据集(DatasetImage),栅格数据集多用来进行栅格分析,因而其像元值为地物的属性值,如高程,降水量等;而影像数据集一般用来进行显示或作为底图,因而其像元值为颜色值或颜色的索引值。


字段摘要
static PixelFormat BIT16
          每个像元用 16 个比特,即 2 个字节表示。
static PixelFormat BIT32
          每个像元用 32 个比特,即 4 个字节来表示。
static PixelFormat BIT64
          每个像元用 64 个比特,即 8 个字节来表示。
static PixelFormat BIT8
          每个像元用 8 个比特,即 1 个字节来表示。
static PixelFormat DOUBLE
          每个像元用 8 个字节来表示。
static PixelFormat RGB
          每个像元用 24 个比特,即 3 个字节来表示。
static PixelFormat RGBA
          每个像元用 32 个比特,即 4 个字节来表示。
static PixelFormat SINGLE
          每个像元用 4 个字节来表示。
static PixelFormat UBIT1
          每个像元用 1 个比特表示。
static PixelFormat UBIT16
          每个像元用 16 个比特,即 2 个字节来表示。
static PixelFormat UBIT32
          每个像元用 32 个比特,即 4 个字节来表示,可表示 0 到 4294967295 共 4294967296 个整数值。
static PixelFormat UBIT4
          每个像元用 4 个比特表示。
static PixelFormat UBIT8
          每个像元用 8 个比特,即 1 个字节表示。
static PixelFormat UNKONOWN
          未知的像素格式。
 
方法摘要
 
从类 com.supermap.data.Enum 继承的方法
equals, getEnums, getNameByValue, getNames, getPredefineValues, getValueByName, getValues, hashCode, isDefined, isDefined, name, parse, parse, toString, value
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

字段详细信息

UNKONOWN

public static final PixelFormat UNKONOWN
未知的像素格式。


UBIT1

public static final PixelFormat UBIT1
每个像元用 1 个比特表示。对栅格数据集来说,可表示 0 和 1 两种值;对影像数据集来说,可表示黑白两种颜色,对应单色影像数据。


UBIT4

public static final PixelFormat UBIT4
每个像元用 4 个比特表示。对栅格数据集来说,可表示 0 到 15 共 16 个整数值;对影像数据集来说,可表示 16 种颜色,这 16 种颜色为索引色,在其颜色表中定义,对应 16 色的影像数据。


UBIT8

public static final PixelFormat UBIT8
每个像元用 8 个比特,即 1 个字节表示。对栅格数据集来说,可表示 0 到 255 共 256 个整数值;对影像数据集来说,可表示 256 种渐变的颜色,这 256 种颜色为索引色,在其颜色表中定义,对应 256 色的影像数据。


BIT16

public static final PixelFormat BIT16
每个像元用 16 个比特,即 2 个字节表示。对栅格数据集来说,可表示 -32768 到 32767 共 65536 个整数值;对影像数据集来说,16 个比特中,红,绿,蓝各用 5 比特来表示,剩余 1 比特未使用,对应彩色的影像数据。


RGB

public static final PixelFormat RGB
每个像元用 24 个比特,即 3 个字节来表示。仅提供给影像数据集使用,24 比特中红、绿、蓝各用 8 比特来表示,对应真彩色的影像数据。

从以下版本开始:
SuperMap iObjects Java 7.0.0

RGBA

public static final PixelFormat RGBA
每个像元用 32 个比特,即 4 个字节来表示。仅提供给影像数据集使用,32 比特中红、绿、蓝和 alpha 各用 8 比特来表示,对应增强真彩色的影像数据。

从以下版本开始:
SuperMap iObjects Java 7.0.0

BIT32

public static final PixelFormat BIT32
每个像元用 32 个比特,即 4 个字节来表示。对栅格数据集来说,可表示 -231 到 (231-1) 共 4294967296 个整数值;对影像数据集来说,32 比特中,红,绿,蓝和 alpha 各用 8 比特来表示,对应增强真彩色的影像数据。该格式支持 DatasetGrid,DatasetImage(仅支持多波段)。


BIT64

public static final PixelFormat BIT64
每个像元用 64 个比特,即 8 个字节来表示。可表示 -263 到 (263-1) 共 18446744073709551616 个整数值。


SINGLE

public static final PixelFormat SINGLE
每个像元用 4 个字节来表示。可表示 -3.402823E+38 到 3.402823E+38 范围内的单精度浮点数。


DOUBLE

public static final PixelFormat DOUBLE
每个像元用 8 个字节来表示。可表示 -1.79769313486232E+308 到 1.79769313486232E+308 范围内的双精度浮点数。


UBIT32

public static final PixelFormat UBIT32
每个像元用 32 个比特,即 4 个字节来表示,可表示 0 到 4294967295 共 4294967296 个整数值。


BIT8

public static final PixelFormat BIT8
每个像元用 8 个比特,即 1 个字节来表示。对栅格数据集来说,可表示 -128 到 127 共 256 个整数值。

从以下版本开始:
SuperMap iObjects Java 7.0.0

UBIT16

public static final PixelFormat UBIT16
每个像元用 16 个比特,即 2 个字节来表示。对栅格数据集来说,可表示 0 到 65535 共 65536 个整数值。

从以下版本开始:
SuperMap iObjects Java 7.0.0