This method adds a map tie point to the currently selected map. You should call SetTerrainTiePoint with the same TiePointIndex to define the respective terrain point coordinate. When all three (0, 1 and 2) indexes are set with both terrain and map points, the map is referenced.
HRESULT SetMapTiePoint(
[in] int TiePointIndex,
[in] double MapX,
[in] double MapY)
Parameters:
TiePointIndex – An integer value of 0, 1, or 2 that defines which of the possible three tie points is set.
MapX – The West-East coordinate in map pixels.
MapY – The North-South coordinate in map pixels.
Return Values:
The return value obtained from the returned HRESULT can be one of the following:
Return value |
Meaning |
S_OK |
Success. |
E_INVALIDARG |
There is a problem with one or more of the arguments passed to this method. Use the IErrorInfo interface to extract more information about this error. |