Click or drag to resize

IconCache Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Allows icons to be rendered efficiently on maps. Manages instances of icons and can perform rotation and creation of icons.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBase.ImageUtilsIconCache

Namespace:  Telogis.GeoBase.ImageUtils
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public class IconCache

The IconCache type exposes the following members.

Constructors
  NameDescription
Public methodIconCache
Initializes a new instance of the IconCache class
Top
Methods
  NameDescription
Public methodStatic memberDrawIcon(Graphics, Int32, Int32, Int32, Boolean)
Draws the specified Icon at the given co-ordinates, with optional selection box.
Public methodStatic memberDrawIcon(Graphics, Int32, Int32, Int32, Single, Boolean)
Draws a rotated Icon at the specified co-ordinates, with optional selection box.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodStatic memberGetBalloonAnchor
Get the anchor point for informational balloons attached to the icon.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodStatic memberGetIcon
Returns an Image of the icon at the specified index.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberLoadIcon(Image)
Load an icon with the hotspot automatically set at the center. Returns the index at which the icon was stored.
Public methodStatic memberLoadIcon(String)
Load an icon from a file path and returns the index at which it was stored.
Public methodStatic memberLoadIcon(Image, Int32, Int32)
Load an icon with the given hotspot parameters. Returns the index at which it was stored.
Public methodStatic memberLoadIcon(String, Int32, Int32)
Load an icon from the specified file path, with the given hotspot parameters. Returns the index at which the icon was stored.
Public methodStatic memberRectangle
Returns the Rectangle of the given icon.
Public methodStatic memberResetBalloonAnchors
Reset the anchor points oof the icon to the default values.
Public methodStatic memberSetBalloonAnchor
Set the anchor point for informational balloons attached to the icon.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

A number of icons are included already in the IconCache. Additional icons can be added at runtime using LoadIcon(Image). PushPins or custom IMapRenderers can be used to render icons on maps.

Hotspots

The default display position of an icon is with its center placed over the specified co-ordinates. If this is not appropriate for an icon, its center position may be adjusted by specifying offset parameters called hotspots. These parameters tell the icon cache to shift the icon before rendering it. An example would be an arrow icon whose point should be rendered over the specified map co-ordinates.

See Also