ArcObjects Library Reference (Carto)  

IRasterExporter.ExportToBytes Method

Converts a raster into a Bitmap.

[Visual Basic .NET]
Public Function ExportToBytes ( _
    ByVal pRaster As IRaster, _
    ByVal Format As String _
) As Byte[]
[C#]
public Byte[] ExportToBytes (
    IRaster pRaster,
    string Format
);
[C++]
HRESULT ExportToBytes(
  IRaster* pRaster,
  BSTR Format,
  ppBYTES* ppBYTES
);
[C++]

Parameters

pRaster [in]

  pRaster is a parameter of type IRaster

Format [in]   Format is a parameter of type BSTR ppBYTES [out, retval]   ppBYTES is a parameter of type

Product Availability

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

See Also

IRasterExporter Interface