com.supermap.data
Class PixelFormat
- java.lang.Object
-
- com.supermap.data.Enum
-
- com.supermap.data.PixelFormat
-
public class PixelFormat extends Enum
Defines constants for pixel format types for grid and image data storage.Actually raster data structure is an array of pixels. Pixel is the storage unit of raster data. Two types of raster dataset are provided in SuperMap: the grid dataset (DatasetGrid) and the image dataset (Datasetimage). The grid dataset is mostly used to do some analysis based on raster, so the value of a pixel represents certain attribute of a geographic feature, such as elevation, rainfall, etc. The image dataset is used to be displayed or used as the base map, so the value of a pixel is the value of a color or the value of an indexed color.
-
-
Field Summary
Fields Modifier and Type Field and Description static PixelFormat
BIT16
Specifies that the format is 16 bits per pixel, namely, 2 bytes per pixel.static PixelFormat
BIT32
Specifies that the format is 32 bits per pixel, that is, 4 bytes per pixel.static PixelFormat
BIT64
Specifies that the format is 64 bits per pixel, that is, 8 bytes per pixel.static PixelFormat
DOUBLE
Specifies that the format is 8 bytes per pixel.static PixelFormat
SINGLE
Specifies that the format is 4 bytes per pixel.static PixelFormat
UBIT1
Specifies that the format is 1 bit per pixel.static PixelFormat
UBIT24
Specifies that the format is 24 bits per pixel, namely, 3 bytes per pixel.static PixelFormat
UBIT32
Specifies that the format is 32 bits per pixel, that is, 4 bytes per pixel.static PixelFormat
UBIT4
Specifies that the format is 4 bits per pixel.static PixelFormat
UBIT8
Specifies that the format is 8 bits per pixel, namely, 1 byte per pixel.
-
-
-
Field Detail
-
UBIT1
public static final PixelFormat UBIT1
Specifies that the format is 1 bit per pixel. For the grid dataset, the value of a pixel can be 0 or 1; for the image dataset, the color of a pixel can be black or white, that is, the monochrome image data.
-
UBIT4
public static final PixelFormat UBIT4
Specifies that the format is 4 bits per pixel. For the grid dataset, the pixel value can be an integer from 0 to 15; for the image dataset, it uses as the indexed color. The color table contains 16 colors, that is, 16 colors image dataset.
-
UBIT8
public static final PixelFormat UBIT8
Specifies that the format is 8 bits per pixel, namely, 1 byte per pixel. For the grid dataset, the value of a pixel is an integer ranging from 0 to 255; for the image dataset, it uses as the indexed color. The color table contains 256 shades of color, that is, the 256 colors image data.
-
BIT16
public static final PixelFormat BIT16
Specifies that the format is 16 bits per pixel, namely, 2 bytes per pixel. For the grid dataset, the value of a pixel in range from 0 through 65535; for the image dataset, 5 bits each are used for red, green, and blue components, that is, the color image data. The remaining bit is not used.
-
UBIT24
public static final PixelFormat UBIT24
Specifies that the format is 24 bits per pixel, namely, 3 bytes per pixel. For the grid dataset, the value of a pixel is an integer from 0 to 16777215; for the image dataset, 8 bits each are used for red, green, and blue components, that is, the true color image data.
-
BIT32
public static final PixelFormat BIT32
Specifies that the format is 32 bits per pixel, that is, 4 bytes per pixel. For the grid dataset, the value of a pixel is an integer from 0 to 4294967295; for the image dataset, 8 bits each are used for red, green, blue and alpha components, that is, the enhanced true color image data.
-
BIT64
public static final PixelFormat BIT64
Specifies that the format is 64 bits per pixel, that is, 8 bytes per pixel. It is only available for DatasetGrid (the grid dataset), and the range of pixel value is from 0 to 18446744073709551615.
-
SINGLE
public static final PixelFormat SINGLE
Specifies that the format is 4 bytes per pixel. It is only available for DatasetGrid (the grid dataset), the pixel can be a single-precision floating-point number ranging in value from 1.5E-45 to 3.4E+38.
-
DOUBLE
public static final PixelFormat DOUBLE
Specifies that the format is 8 bytes per pixel. It is only available for DatasetGrid (the grid dataset), and the pixel value is a double-precision floating-point number ranging in value from 5.0E-324 to 1.7E+308.
-
UBIT32
public static final PixelFormat UBIT32
Specifies that the format is 32 bits per pixel, that is, 4 bytes per pixel. For the grid dataset, the value of a pixel is an integer from 0 to 4294967295; for the image dataset, 8 bits each are used for red, green, blue and alpha components, that is, the enhanced true color image data.Supports the DatasetImage( Muilt-band is not supported).
-
-