This document is archived and information here might be outdated.  Recommended version.


IRasterColormapToRGBConversion.RGBRasterToColormap Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IR > IRasterColormapToRGBConversion Interface > IRasterColormapToRGBConversion.RGBRasterToColormap Method
ArcGIS Developer Help

IRasterColormapToRGBConversion.RGBRasterToColormap Method

Converts a RGB raster to a colormap raster dataset.

[Visual Basic .NET]
Public Function RGBRasterToColormap ( _
    ByVal pRaster As IRaster, _
    ByVal pWorkspace As IWorkspace, _
    ByVal Name As String, _
    ByVal Format As String _
) As IName
[C#]
public IName RGBRasterToColormap (
    IRaster pRaster,
    IWorkspace pWorkspace,
    string Name,
    string Format
);
[C++]
HRESULT RGBRasterToColormap(
  IRaster* pRaster,
  IWorkspace* pWorkspace,
  BSTR Name,
  BSTR Format
);
[C++]
Parameters
pRaster [in]

pRaster is a parameter of type IRaster* pWorkspace [in]
pWorkspace is a parameter of type IWorkspace* Name [in]
Name is a parameter of type BSTR Format [in]
Format is a parameter of type BSTR

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