Draw symbol

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.

  1. Run the sample application. The application draws a symbol that supports the ISymbol interface.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

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