Click here to view all files
 
Builds pyramids on the Raster to improve display performance.

Namespace:  ESRI.ArcGISExplorer.Data
Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.900 (2.0.0.900)

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

See Also

Relate Topics:
  DeletePyramids Method
  Dispose Method
  GetBandNames Method
  GetBitmap Method
  GetColorAtPoint Method
  GetValueAtPoint Method
  OpenArcSDERaster Method
  OpenFileGeodatabaseRaster Method
  OpenRasterFile Method
  ToString Method
Created by Atop CHM to web converter,© 2009 all right reserved.