ArcObjects Library Reference (DataSourcesRaster)  

IRasterColormapToRGBConversion.RGBToColormap Method

Convert an RGB raster dataset to a colormap raster dataset.

[Visual Basic .NET]
Public Function RGBToColormap ( _
    ByVal pInRasterDataset As IRasterDataset, _
    ByVal pOutWorkspace As IWorkspace, _
    ByVal outName As String, _
    ByVal Format As String _
) As IName
[C#]
public IName RGBToColormap (
    IRasterDataset pInRasterDataset,
    IWorkspace pOutWorkspace,
    string outName,
    string Format
);
[C++]
HRESULT RGBToColormap(
  IRasterDataset* pInRasterDataset,
  IWorkspace* pOutWorkspace,
  BSTR outName,
  BSTR Format,
  IName** ppOutName
);
[C++]

Parameters

pInRasterDataset [in]

  pInRasterDataset is a parameter of type IRasterDataset

pOutWorkspace [in]

  pOutWorkspace is a parameter of type IWorkspace

outName [in]   outName is a parameter of type BSTR Format [in]   Format is a parameter of type BSTR ppOutName [out, retval]

  ppOutName is a parameter of type IName

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The parameter pOutWorkspace can only be a raster workspace, which is a file based workspace.

The format string can be "IMAGINE Image", "TIFF", "GRID", or "BMP" only.

See Also

IRasterColormapToRGBConversion Interface