FDO API Reference | Feature Data Objects |
00001 #ifndef _RASTERDATAMODELTYPE_H_ 00002 #define _RASTERDATAMODELTYPE_H_ 00003 00004 // 00005 // Copyright (C) 2004-2006 Autodesk, Inc. 00006 // 00007 // This library is free software; you can redistribute it and/or 00008 // modify it under the terms of version 2.1 of the GNU Lesser 00009 // General Public License as published by the Free Software Foundation. 00010 // 00011 // This library is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 // Lesser General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU Lesser General Public 00017 // License along with this library; if not, write to the Free Software 00018 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 // 00020 #ifdef _WIN32 00021 #pragma once 00022 #endif 00023 00024 #include <FdoStd.h> 00025 00026 /// \brief 00027 /// The FdoRasterDataModelType 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 /// <param name="FdoRasterDataModelType_Unknown"> 00042 /// Data is organized in an unknown or provider specific manner. 00043 /// </param> 00044 /// <param name="FdoRasterDataModelType_Bitonal"> 00045 /// Data is organized as one bit (black/white - bitonal) data. 00046 /// </param> 00047 /// <param name="FdoRasterDataModelType_Gray"> 00048 /// Data is monochrome (black->gray->white) pixels. 00049 /// It is necessary to know the BitsPerPixel value to interpret the data. 00050 /// </param> 00051 /// <param name="FdoRasterDataModelType_RGB"> 00052 /// Data is red/green/blue (in that order) pixels. 00053 /// It is necessary to know the BitsPerPixel value to interpret the data. 00054 /// </param> 00055 /// <param name="FdoRasterDataModelType_RGBA"> 00056 /// Data is red/green/blue/alpha (in that order) pixels; RGB with transparency. 00057 /// It is necessary to know the BitsPerPixel value to interpret the data. 00058 /// </param> 00059 /// <param name="FdoRasterDataModelType_Palette"> 00060 /// Data is monochrome but backed by a pallette (value->pallette->colour) pixels. 00061 /// It is necessary to know the BitsPerPixel value to interpret the data. 00062 /// </param> 00063 enum FdoRasterDataModelType 00064 { 00065 /// Data is organized in an unknown or provider specific manner. 00066 FdoRasterDataModelType_Unknown, 00067 00068 /// Data is rectangular grid, floating point data model. 00069 FdoRasterDataModelType_Data, 00070 00071 /// Data is one bit (black/white - bitonal) pixels. 00072 FdoRasterDataModelType_Bitonal, 00073 00074 /// Data is monochrome (black->gray->white) pixels. 00075 /// It is necessary to know the BitsPerPixel value to interpret the data. 00076 FdoRasterDataModelType_Gray, 00077 00078 /// Data is red/green/blue (in that order) pixels. 00079 /// It is necessary to know the BitsPerPixel value to interpret the data. 00080 FdoRasterDataModelType_RGB, 00081 00082 /// Data is red/green/blue/alpha (in that order) pixels; RGB with transparency. 00083 /// It is necessary to know the BitsPerPixel value to interpret the data. 00084 FdoRasterDataModelType_RGBA, 00085 00086 /// Data is monochrome but backed by a pallette (value->pallette->colour) pixels. 00087 /// It is necessary to know the BitsPerPixel value to interpret the data. 00088 FdoRasterDataModelType_Palette 00089 }; 00090 00091 #endif // _RASTERDATAMODELTYPE_H_ 00092 00093
Comments or suggestions? Send us feedback. |