com.esri.arcgis.carto
Interface IRasterExporter

All Superinterfaces:
Serializable
All Known Implementing Classes:
RasterExporter

public interface IRasterExporter
extends Serializable

Provides access to members that control a Bitmap converter.

Remarks

The IRasterExporter interface is used to convert a Raster object to bitmap, or bytes.

The bytes can be opened as a RasterDataset using IRasterWorkspace3 interface.

Product Availability

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


Method Summary
 byte[] exportToBytes(IRaster pRaster, String format)
          Converts a raster into a Bitmap.
 IRasterRenderer getRasterRenderer()
          The raster renderer used for conversion.
 void setRasterRendererByRef(IRasterRenderer ppRenderer)
          The raster renderer used for conversion.
 

Method Detail

getRasterRenderer

IRasterRenderer getRasterRenderer()
                                  throws IOException,
                                         AutomationException
The raster renderer used for conversion.

Remarks

A raster renderer can be get and set, and utilized during raster convertion.

Product Availability

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

Returns:
A reference to a com.esri.arcgis.carto.IRasterRenderer
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setRasterRendererByRef

void setRasterRendererByRef(IRasterRenderer ppRenderer)
                            throws IOException,
                                   AutomationException
The raster renderer used for conversion.

Product Availability

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

Parameters:
ppRenderer - A reference to a com.esri.arcgis.carto.IRasterRenderer (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

exportToBytes

byte[] exportToBytes(IRaster pRaster,
                     String format)
                     throws IOException,
                            AutomationException
Converts a raster into a Bitmap.

Product Availability

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

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