Click or drag to resize

IconCacheLoadIcon Method (Image, Int32, Int32)

Verizon Connect Logo
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
)

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: Int32
The 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