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 pInRasterDataset, IWorkspace pOutWorkspace, String outName, String format)
          Convert a colormap raster dataset to an RGB raster dataset.
 IRaster createRGBRaster(IRasterDataset pRasterDataset)
          Creates a RGB muitlband raster from a a colormap raster dataset.
 IName rGBRasterToColormap(IRaster pInRaster, IWorkspace pOutWorkspace, String outName, String format)
          Convert an RGB raster to a colormap raster dataset.
 IName rGBToColormap(IRasterDataset pInRasterDataset, IWorkspace pOutWorkspace, String outName, String format)
          Convert an RGB raster dataset to a colormap raster dataset.
 

Method Detail

rGBToColormap

IName rGBToColormap(IRasterDataset pInRasterDataset,
                    IWorkspace pOutWorkspace,
                    String outName,
                    String format)
                    throws IOException,
                           AutomationException
Convert an 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:
pInRasterDataset - A reference to a com.esri.arcgis.geodatabase.IRasterDataset (in)
pOutWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
outName - The outName (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 pInRaster,
                          IWorkspace pOutWorkspace,
                          String outName,
                          String format)
                          throws IOException,
                                 AutomationException
Convert an 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:
pInRaster - A reference to a com.esri.arcgis.geodatabase.IRaster (in)
pOutWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
outName - The outName (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 pInRasterDataset,
                    IWorkspace pOutWorkspace,
                    String outName,
                    String format)
                    throws IOException,
                           AutomationException
Convert a colormap raster dataset to an 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:
pInRasterDataset - A reference to a com.esri.arcgis.geodatabase.IRasterDataset (in)
pOutWorkspace - A reference to a com.esri.arcgis.geodatabase.IWorkspace (in)
outName - The outName (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 muitlband raster from a 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.