IconCacheLoadIcon Method (Image, Int32, Int32) | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Load an icon with the given hotspot parameters. Returns the index at which it was stored.
Namespace:
Telogis.GeoBase.ImageUtils
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public static int LoadIcon(
Image anIcon,
int hotspot_x,
int hotspot_y
)
Public Shared Function LoadIcon (
anIcon As Image,
hotspot_x As Integer,
hotspot_y As Integer
) As Integer
Parameters
- anIcon
- Type: System.DrawingImage
The Image to use for the icon - hotspot_x
- Type: SystemInt32
X coordinate of hotspot (relative to top left of icon) - hotspot_y
- Type: SystemInt32
Y coordinate of hotspot (relative to top left of icon)
Return Value
Type:
Int32The index at which this icon has been created in the cache
Remarks
The hotspot refers to the point on the image used for positioning the icon.
For example, a pin icon would likely have the hotspot set to the tip of the pin.
This would ensure that when the icon is positioned it will have the point of the
pin placed accurately.
See Also