Layer effects animation in ArcMap


Purpose
This sample shows how to create custom animations in ArcGIS for Desktop and implement a layer effects animation type for ArcMap. It allows you to animate through layer brightness and contrast. This animation only works with raster layers that support contrast and brightness as layer properties.
As shown by the sample code, to create a custom animation type in ArcMap, ArcScene, or ArcGlobe, implement a new keyframe class and a new animation type class. Register the animation type class in the Esri Map Animation Types component category (or Esri 3D Animation Types for ArcScene and Esri 3D Animation Types for Globe or ArcGlobe).

How to use

See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

Add layer effects animation functionality to ArcMap
  1. Compile the sample project in Visual Studio.
  2. Start ArcMap and add a raster layer to the table of contents (TOC).
  3. Click Customize, Toolbars, and Animation to open the Animation toolbar.
  4. You can now create layer effects animation in ArcMap in a similar way as you create a map layer animation (first use the Create Animation Keyframe dialog box to create a layer effects track with two keyframes, then use the Animation Manager to set the keyframe properties).

MapLayerEffectsKeyframe.cs The keyframe class for layer effects animation in ArcMap.
AnimationTypeLayerEffects.cs The animation type class for layer effects animation in ArcMap.
Download the C# files
MapLayerEffectsKeyframe.vb The keyframe class for layer effects animation in ArcMap.
AnimationTypeLayerEffects.vb The animation type class for layer effects animation in ArcMap.
Download the VB.NET files

Download the files for all languages




Development licensing Deployment licensing
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced