IconCache Class |
Namespace: Telogis.GeoBase.ImageUtils
The IconCache type exposes the following members.
Name | Description | |
---|---|---|
DrawIcon(Graphics, Int32, Int32, Int32, Boolean) |
Draws the specified Icon at the given co-ordinates, with optional selection box.
| |
DrawIcon(Graphics, Int32, Int32, Int32, Single, Boolean) |
Draws a rotated Icon at the specified co-ordinates, with optional selection box.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetBalloonAnchor |
Get the anchor point for informational balloons attached to the icon.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetIcon |
Returns an Image of the icon at the specified index.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LoadIcon(Image) |
Load an icon with the hotspot automatically set at the center. Returns the index at which
the icon was stored.
| |
LoadIcon(String) |
Load an icon from a file path and returns the index at which it was stored.
| |
LoadIcon(Image, Int32, Int32) |
Load an icon with the given hotspot parameters. Returns the index at which it was stored.
| |
LoadIcon(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.
| |
Rectangle |
Returns the Rectangle of the given icon.
| |
ResetBalloonAnchors |
Reset the anchor points oof the icon to the default values.
| |
SetBalloonAnchor |
Set the anchor point for informational balloons attached to the icon.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
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.