FDO .NET API Reference Feature Data Objects

mgRasterDataModelType.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (C) 2004-2006  Autodesk, Inc.
00003 * 
00004 * This library is free software; you can redistribute it and/or
00005 * modify it under the terms of version 2.1 of the GNU Lesser
00006 * General Public License as published by the Free Software Foundation.
00007 * 
00008 * This library is distributed in the hope that it will be useful,
00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 * Lesser General Public License for more details.
00012 * 
00013 * You should have received a copy of the GNU Lesser General Public
00014 * License along with this library; if not, write to the Free Software
00015 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00016 *
00017 */
00018 
00019 #pragma once
00020 
00021 /// \cond DOXYGEN-IGNORE
00022 BEGIN_NAMESPACE_OSGEO_FDO_RASTER
00023 /// \endcond
00024 
00025 /// \ingroup (OSGeoFDORaster)
00026 /// \brief
00027 /// The RasterDataModelType enumeration specifies the type of
00028 /// data within each pixel. In all cases the data is 'packed', that is,
00029 /// adjacent pixels are contiguous in memory with no unused bits between
00030 /// them, except at the end of a row, where the row is padded to a
00031 /// byte boundary. For example, four bit grayscale data (BitsPerPixel=4)
00032 /// would be packed two pixels to a byte, and a row would be padded with
00033 /// four bits if the image width was odd. Tri-colour or four channel data
00034 /// is also organized adjacently in memory, with no intervening padding
00035 /// except at the ends of rows. For example, eight bit RGB (BitsPerPixel=24)
00036 /// occupies three bytes per pixel, and would never need padding at the
00037 /// end of a row. Multiband data (i.e. RGB) has the same number of bits
00038 /// allocated to each band, so for example RGBT data with eight bits for red,
00039 /// would also have eight bits for each of the three other bands totaling
00040 /// thirty-two bits (BitsPerPixel=32).
00041 public __value enum RasterDataModelType
00042 {
00043     /// Data is organized in an unknown or provider specific manner.
00044     RasterDataModelType_Unknown = FdoRasterDataModelType_Unknown,
00045 
00046     /// Data is rectangular grid, floating point data model.
00047     RasterDataModelType_Data = FdoRasterDataModelType_Data,
00048 
00049     /// Data is one bit (black/white - bitonal) pixels.
00050     RasterDataModelType_Bitonal = FdoRasterDataModelType_Bitonal,
00051 
00052     /// Data is monochrome (black->gray->white) pixels.
00053     /// It is necessary to know the BitsPerPixel value to interpret the data.
00054     RasterDataModelType_Gray = FdoRasterDataModelType_Gray,
00055 
00056     /// Data is red/green/blue (in that order) pixels.
00057     /// It is necessary to know the BitsPerPixel value to interpret the data.
00058     RasterDataModelType_RGB = FdoRasterDataModelType_RGB,
00059 
00060     /// Data is red/green/blue/alpha (in that order) pixels; RGB with transparency.
00061     /// It is necessary to know the BitsPerPixel value to interpret the data.
00062     RasterDataModelType_RGBA = FdoRasterDataModelType_RGBA,
00063 
00064     /// Data is monochrome but backed by a pallette (value->pallette->colour) pixels.
00065     /// It is necessary to know the BitsPerPixel value to interpret the data.
00066     RasterDataModelType_Palette = FdoRasterDataModelType_Palette
00067 };
00068 
00069 /// \cond DOXYGEN-IGNORE
00070 END_NAMESPACE_OSGEO_FDO_RASTER
00071 /// \endcond

Comments or suggestions? Send us feedback.