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); }
public HdrFile ToHdrFile() { HdrFile hdr = new HdrFile(); hdr.Samples = _width; hdr.Lines = _height; hdr.DataType = HdrFile.DataTypeToIntValue(typeof(Int16)); hdr.Intertleave = enumInterleave.BSQ; hdr.Bands = 1; hdr.HeaderOffset = HeaderSize; hdr.ByteOrder = enumHdrByteOder.Host_intel; hdr.HdrProjectionInfo = GetHdrProjectionInfo(); hdr.MapInfo = GetHdrMapInfo(); hdr.GeoPoints = null; return(hdr); }