This document is archived and information here might be outdated. Recommended version. |
Opens a RasterDataset from an in-memry image.
[Visual Basic .NET] Public Function OpenRasterDatasetFromBytes ( _ ByRef ppBytes As Byte[]&, _ ByVal Copy As Boolean _ ) As IRasterDataset
[C#] public IRasterDataset OpenRasterDatasetFromBytes ( ref Byte[]& ppBytes, ref bool Copy );
[C++]
HRESULT OpenRasterDatasetFromBytes(
SAFEARRAY(System.Byte)* ppBytes,
VARIANT_BOOL Copy
);
[C++] Parameters ppBytes [in]
ppBytes is a parameter of type SAFEARRAY(unsigned char)* Copy [in]
Copy is a parameter of type bool
This method is used to open a RasterDataset from bytes, an in-memory image, which is normally created from RasterExplorter or IRasterWorkspace2::CreateRasterDataset with "MEM" string.