Hillshade Command


This sample mimicks the Hillshade dialog found in the 3D Analyst toolbar. This is used as an example to show how one can implement the functionality of that dialog using Visual Basic.

How to use:

    Steps for adding a command/tool from a DLL:

  1. Register the DLL: HillshadeCommand.dll.
  2. In ArcMap or ArcScene's Customize dialog, click on 'Add from file' and select this sample's dll.
  3. Select the Hillshade command under the 3D Developer Samples Category on the Commands tab. Drag and drop it to the desired location in the application's user interface. Dismiss the Customize dialog.

    Using the Tool:

  1. Use the dialog from this sample just as the Hillshade dialog found on the 3D Analyst toolbar.

ArcScene or ArcMap

Requires: An ArcScene or ArcMap session.

Difficulty: Intermediate

Visual Basic
File Description
clsHillshadeCommand.cls Implementation of ICommand for this sample.
frmHillshade.frm Presents the user interface for this sample and does most of the work.
HillshadeCommand.vbp Visual Basic Project file for the command.
HillshadeCommand.dll The compiled DLL containing the implementation of the sample.

Key CoClasses: Tin, RasterSurfaceOp
Key Interfaces: ISurface, ISurfaceOp
Key Members: ISurface::QueryPixelBlock, ISurfaceOp::Hillshade