Making a line fill symbol
Line fill symbols are used to draw fill internally composed of one or more line symbols. Any type of line symbol that is supported by the ILineSymbol interface can be used. The following code example shows the steps for creating a line fill that uses an ICartographicLineSymbol as the internal fill:
[Java]
static void lineFillSymbol()throws Exception{
// Set the color for the Line Symbol within the fill
IRgbColor rgbColorCls = new RgbColor();
rgbColorCls.setRed(138);
rgbColorCls.setGreen(151);
rgbColorCls.setBlue(255);
// Create the Line Symbol to be used
ICartographicLineSymbol cartographicLineSymbolCls = new CartographicLineSymbol();
cartographicLineSymbolCls.setCap(esriLineCapStyle.esriLCSButt);
cartographicLineSymbolCls.setJoin(esriLineJoinStyle.esriLJSMitre);
cartographicLineSymbolCls.setColor(rgbColorCls);
cartographicLineSymbolCls.setWidth(2);
// Create the LineFillSymbol
ILineFillSymbol lineFillSymbolCls = new LineFillSymbol();
lineFillSymbolCls.setAngle(45);
lineFillSymbolCls.setSeparation(10);
lineFillSymbolCls.setOffset(5);
lineFillSymbolCls.setLineSymbolByRef(cartographicLineSymbolCls);
}
See Also:
How to make a cartographic line symbolHow to make a character marker symbol
How to make a gradient fill symbol
How to make a line callout
How to make a picture marker symbol
How to make different types of colors
Development licensing | Deployment licensing |
---|---|
ArcView | ArcView |
ArcEditor | ArcEditor |
ArcInfo | ArcInfo |
Engine Developer Kit | Engine Runtime |