I am adding an imagelayer to a map with a WorldData structure that specifies a target lat/long in the center:
WorldData worldData = SketchHelper.ConvertWorldCoordinates(CurrentSketchModel.BaseImage.WorldData);
ImageLayer imageLayer = new ImageLayer(imageFileName, worldData);
this returns the following in the Visual Studio immediate window:
CenterX: -80.14044
CenterY: 26.95556
ColumnRotation: 0.0
RowRotation: 0.0
SizeX: 0.000001025641025645923
SizeY: -0.000001025641025645923
However, the imagelayer's extent is as follows:
? imageLayer.Extent.Centroid
X: -80.139941025641008
Y: 26.955249743589739
and the imagelayer's upper left point is as follows:
? imageLayer.Extent.UpperLeftPoint
X: -80.1404405128205
Y: 26.955560512820512
In other words, what should be the centroid is ending up as the upper left corner of the extent.
How do I fix this?