com.esri.arcgis.datasourcesraster
Interface IRasterColormapToRGBConversion

All Superinterfaces:
Serializable
All Known Implementing Classes:
RasterColormapToRGBConverter

public interface IRasterColormapToRGBConversion
extends Serializable

Provides access to members that convert between colormap and 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.

Product Availability

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


Method Summary
 IName colormapToRGB(IRasterDataset pRasterDataset, IWorkspace pWorkspace, String name, String format)
          Converts a colormap raster dataset to a RGB raster dataset.
 IRaster createRGBRaster(IRasterDataset pRasterDataset)
          Creates a RGB multiband raster from a colormap raster dataset.
 IName rGBRasterToColormap(IRaster pRaster, IWorkspace pWorkspace, String name, String format)
          Converts a RGB raster to a colormap raster dataset.
 IName rGBToColormap(IRasterDataset pRasterDataset, IWorkspace pWorkspace, String name, String format)
          Converts a RGB raster dataset to a colormap raster dataset.
 

Method Detail

rGBToColormap

IName rGBToColormap(IRasterDataset pRasterDataset,
                    IWorkspace pWorkspace,
                    String name,
                    String format)
                    throws IOException,
                           AutomationException
Converts a RGB raster dataset to a colormap raster dataset.

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.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
pRasterDataset - A reference to a com.esri.arcgis.geodatabase.IRasterDataset (in)
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
name - The name (in)
format - The format (in)
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

rGBRasterToColormap

IName rGBRasterToColormap(IRaster pRaster,
                          IWorkspace pWorkspace,
                          String name,
                          String format)
                          throws IOException,
                                 AutomationException
Converts a RGB raster to a colormap raster dataset.

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.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
pRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
name - The name (in)
format - The format (in)
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

colormapToRGB

IName colormapToRGB(IRasterDataset pRasterDataset,
                    IWorkspace pWorkspace,
                    String name,
                    String format)
                    throws IOException,
                           AutomationException
Converts a colormap raster dataset to a RGB raster dataset.

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 parameter pOutWorkspace can only a raster workspace, which is a file based workspace.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
pRasterDataset - A reference to a com.esri.arcgis.geodatabase.IRasterDataset (in)
pWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
name - The name (in)
format - The format (in)
Returns:
A reference to a com.esri.arcgis.system.IName
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

createRGBRaster

IRaster createRGBRaster(IRasterDataset pRasterDataset)
                        throws IOException,
                               AutomationException
Creates a RGB multiband raster from a colormap raster dataset.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
pRasterDataset - A reference to a com.esri.arcgis.geodatabase.IRasterDataset (in)
Returns:
A reference to a com.esri.arcgis.geodatabase.IRaster
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.