IRasterColormapToRGBConversion Interface

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

Members

Name Description
Method ColormapToRGB Converts a colormap raster dataset to a RGB raster dataset.
Method CreateRGBRaster Creates a RGB multiband raster from a colormap raster dataset.
Method RGBRasterToColormap Converts a RGB raster to a colormap raster dataset.
Method RGBToColormap Converts a RGB raster dataset to a colormap raster dataset.

IRasterColormapToRGBConversion.ColormapToRGB Method

Converts a colormap raster dataset to a RGB raster dataset.

Public Function ColormapToRGB ( _
    ByVal pRasterDataset As IRasterDataset, _
    ByVal pWorkspace As IWorkspace, _
    ByVal Name As String, _
    ByVal Format As String _
) As IName
public IName ColormapToRGB (
    IRasterDataset pRasterDataset,
    IWorkspace pWorkspace,
    string Name,
    string Format
);

Description

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.

Remarks

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

IRasterColormapToRGBConversion.CreateRGBRaster Method

Creates a RGB multiband raster from a colormap raster dataset.

Public Function CreateRGBRaster ( _
    ByVal pRasterDataset As IRasterDataset _
) As IRaster
public IRaster CreateRGBRaster (
    IRasterDataset pRasterDataset
);

IRasterColormapToRGBConversion.RGBRasterToColormap Method

Converts a RGB raster to a colormap raster dataset.

Public Function RGBRasterToColormap ( _
    ByVal pRaster As IRaster, _
    ByVal pWorkspace As IWorkspace, _
    ByVal Name As String, _
    ByVal Format As String _
) As IName
public IName RGBRasterToColormap (
    IRaster pRaster,
    IWorkspace pWorkspace,
    string Name,
    string Format
);

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.

IRasterColormapToRGBConversion.RGBToColormap Method

Converts a RGB raster dataset to a colormap raster dataset.

Public Function RGBToColormap ( _
    ByVal pRasterDataset As IRasterDataset, _
    ByVal pWorkspace As IWorkspace, _
    ByVal Name As String, _
    ByVal Format As String _
) As IName
public IName RGBToColormap (
    IRasterDataset pRasterDataset,
    IWorkspace pWorkspace,
    string Name,
    string Format
);

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.

Classes that implement IRasterColormapToRGBConversion

Classes Description
RasterColormapToRGBConverter A helper class for converting between colormap to RGB raster.

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.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.