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


IRasterExporter.ExportToBytes Method (ArcObjects .NET 10.6 SDK)
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
);
[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 (Code Files: ThumbnailBuilder)