Interface IRasterColormapToRGBConversion

Namespace
ESRI.ArcGIS.DatasourcesRaster
Assembly
ESRI.Server.DatasourcesRaster.dll

Provides access to members that convert between colormap and RGB Raster.

[Guid("2B37ACD6-314F-420B-A2E7-CA85465488FE")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface IRasterColormapToRGBConversion

Remarks

IRasterColormapToRGBConversion provides access to methods that convert between a raster datset that has a colormap and a three-band raster dataset. The pOutWorkspace parameter can only be a raster workspace, which means that the output can only be a file-based raster dataset.

The ColormapToRGB method converts a raster dataset that has a colormap to a three-band raster dataset by mapping the color red, green and blue in the colormap table to the red, green and blue bands of the raster dataset.

The CreateRGBRaster method creates a Raster that contains three bands, which can be saved using ISaveAs.

The RGBToColormap method converts a three-band raster dataset to a colormap raster dataset.

The RGBRasterToColormap method takes a Raster as input and coverts to a raster dataset that contains a colormap.

 

Methods

ColormapToRGB(IRasterDataset, IWorkspace, string, string)

Converts a colormap raster dataset to a RGB raster dataset.

IName ColormapToRGB(IRasterDataset pRasterDataset, IWorkspace pWorkspace, string Name, string Format)

Parameters

pRasterDataset IRasterDataset
pWorkspace IWorkspace
Name string
Format string

Returns

IName

Remarks

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

CreateRGBRaster(IRasterDataset)

Creates a RGB multiband raster from a colormap raster dataset.

IRaster CreateRGBRaster(IRasterDataset pRasterDataset)

Parameters

pRasterDataset IRasterDataset

Returns

IRaster

RGBRasterToColormap(IRaster, IWorkspace, string, string)

Converts a RGB raster to a colormap raster dataset.

IName RGBRasterToColormap(IRaster pRaster, IWorkspace pWorkspace, string Name, string Format)

Parameters

pRaster IRaster
pWorkspace IWorkspace
Name string
Format string

Returns

IName

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.

RGBToColormap(IRasterDataset, IWorkspace, string, string)

Converts a RGB raster dataset to a colormap raster dataset.

IName RGBToColormap(IRasterDataset pRasterDataset, IWorkspace pWorkspace, string Name, string Format)

Parameters

pRasterDataset IRasterDataset
pWorkspace IWorkspace
Name string
Format string

Returns

IName

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.