Builds pyramids on the Raster to improve display performance.
Namespace:
ESRI.ArcGISExplorer.DataAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public void BuildPyramids() |
Visual Basic (Declaration) |
---|
Public Sub BuildPyramids |
Remarks
This method cannot be used to build pyramids for rasters stored in an ArcSDE geodatabase.
Examples
The code below opens a file-based raster using the Open method, checks whether pyramids exist
and if not builds them.
CopyC#
{ //Open a file-based (Mr. Sid) raster Raster demRaster = Raster.OpenRasterFile(@"\\leven\Data\Yellowstone\dem.sid"); //If pyramids are not present build them if (demRaster.HasPyramids == false) { demRaster.BuildPyramids(); } }
CopyVB.NET
'Open a file-based (Mr. Sid) raster Dim demRaster As Raster = Raster.OpenRasterFile("\\leven\Data\Yellowstone\dem.sid") 'If pyramids are not present build them If demRaster.HasPyramids = False Then demRaster.BuildPyramids() End If