This document is archived and information here might be outdated.  Recommended version.


IRasterExporter.ExportToBytes Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IR > IRasterExporter Interface > IRasterExporter.ExportToBytes Method
ArcGIS Developer Help

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
);
[C++]
Parameters
pRaster [in]

pRaster is a parameter of type IRaster* Format [in]
Format is a parameter of type BSTR

Product Availability

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

See Also

IRasterExporter Interface

.NET Samples

Create a custom raster type