ESRI.ArcGIS.ADF.IMS
RasterFillSymbol Class
Members  Example  See Also 
ESRI.ArcGIS.ADF.IMS.Display.Symbol Namespace : RasterFillSymbol Class




FillSymbol used for filling polygons with a given image.

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class RasterFillSymbol 
   Inherits FillSymbol
Visual Basic (Usage)Copy Code
Dim instance As RasterFillSymbol
C# 
[SerializableAttribute()]
public class RasterFillSymbol : FillSymbol 

Example

This example creates a new RasterFillSymbol and replaces the symbol for a countries layer.
Visual BasicCopy Code
' Create a new raster fill symbol and set its properties

Dim rasterFillSymb As New RasterFillSymbol()

rasterFillSymb.Image = "C:\Temp\wheelchair.gif"

' Url property isn't used by image services--only needed if using Web ADF TOC control

rasterFillSymb.Url = "http://myserver/temp/citysymbol.gif"

rasterFillSymb.AllowLabelOverlap = True

rasterFillSymb.Antialiasing = True

rasterFillSymb.Transparency = 30



' Retrieve renderer for existing polygon layer

Dim layer As FeatureLayer = mapView.Layers.FindByName("Countries")

Dim renderer As SimpleRenderer = layer.Renderer



' Replace the renderer's symbol with the one we created

renderer.Symbol = simpleFillSymb

C#Copy Code
// Create a new raster fill symbol and set its properties 

RasterFillSymbol rasterFillSymb = new RasterFillSymbol(); 

rasterFillSymb.Image = "C:\Temp\wheelchair.gif"; 

// Url property isn't used by image services--only needed if using Web ADF TOC control 

rasterFillSymb.Url = "http://myserver/temp/citysymbol.gif"; 

rasterFillSymb.AllowLabelOverlap = true; 

rasterFillSymb.Antialiasing = true; 

rasterFillSymb.Transparency = 30; 

  

// Retrieve renderer for existing polygon layer 

FeatureLayer layer = mapView.Layers.FindByName("Countries"); 

SimpleRenderer renderer = layer.Renderer; 

  

// Replace the renderer's symbol with the one we created 

renderer.Symbol = simpleFillSymb; 

    

Remarks

RasterFillSymbol tiles an image to fill the polygons to which it is applied.

The image is drawn on the map by the server, so that the raster image does not need to be available to the client (browser).

May be used either to symbolize a FeatureLayer within its renderer, or to symbolize a GeometryElement in an acetate layer.

For ArcMap Server image services, valid only for acetate layers. ArcMap Server ignores several of the properties of this class. For details, see the topic for RASTERFILLSYMBOL in the ArcIMS Help, at ArcXML Guide - Symbol elements - RASTERFILLSYMBOL. The ArcIMS Help is also available online at ESRI).

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.ADF.IMS.Display.Symbol.Symbol
      ESRI.ArcGIS.ADF.IMS.Display.Symbol.FeatureSymbol
         ESRI.ArcGIS.ADF.IMS.Display.Symbol.FillSymbol
            ESRI.ArcGIS.ADF.IMS.Display.Symbol.RasterFillSymbol

See Also

© 2010 All Rights Reserved.