Draw symbol


Purpose
This sample provides function to draw an object supporting ISymbol to a device context, a window, an OLE Picture object, or a bitmap file. Extensive use is made of Windows application programming interface (API) calls. An optional gap can be supplied to the function, using the lGap parameter, to create a blank border around the symbol.

How to use

See How to use ArcGIS samples for help on 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. Run the sample application. The application draws a symbol that supports the ISymbol interface.


Download the files for Java
cartography/DrawSymbolMain.java Main class for the sample application




Additional Requirements
  • A defined symbol object

Development licensing Deployment licensing
Engine Developer Kit Engine
ArcGIS for Desktop Basic