Create a custom default raster renderer


PurposeThis sample shows how to create a custom default raster renderer. This sample creates a dynamic-link library (DLL), which is registered to the component category, and changes the default behavior to add a 1-bit tagged image file format (TIFF) image.

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.

  1. Start Visual Studio, open the solution file, and compile the program. A DLL is generated and registered in the ESRI RasterRendererMakers component category.
  2. Run category.exe from the ArcGIS bin directory to confirm that the custom DLL was added to that category.
  3. Start ArcMap and add a 1-bit TIFF image. The image displays as a unique value renderer with red color.
  4. To return to the ArcGIS built-in renderer for the 1-bit TIFF, use the esriregasm.exe utility from the Program Files\Common Files\ArcGIS\bin folder to unregister the DLL.

RasterRenderMaker_1bitTiff_csharp.cs Source file that implements the raster renderer maker class.
Download the C# files
RasterRendererMaker_1bit_TIFF_VBNET.vb Source file that implements the raster renderer maker class.
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
Engine Developer Kit