Пример #1
0
        private static object[] GetColorTableFunc(IRasterDataProvider prd, string productIdentify, string subIdentify)
        {
            if (string.IsNullOrEmpty(productIdentify) || string.IsNullOrEmpty(subIdentify))
            {
                return(null);
            }
            ProductColorTable ct = ProductColorTableFactory.GetColorTable(productIdentify + subIdentify);
            Type dataType        = DataTypeHelper.Enum2DataType(prd.DataType);

            return(GetStretcher(dataType, ct));
        }
Пример #2
0
        public HdrFile ToHdrFile()
        {
            HdrFile hdr = new HdrFile();

            hdr.Bands        = BandCount;
            hdr.Samples      = Width;
            hdr.Lines        = Height;
            hdr.DataType     = HdrFile.DataTypeToIntValue(DataTypeHelper.Enum2DataType((enumDataType)DataType));
            hdr.HeaderOffset = Marshal.SizeOf(typeof(MemoryRasterHeader)) + ExtendHeaderLength;
            return(hdr);
        }
Пример #3
0
 private string GetDataType(enumDataType dataType)
 {
     return(DataTypeHelper.Enum2DataType(dataType).ToString());
 }