I'am trying to save annotation top/left and size to xml file. When I'am loading values (top/left/size) from xml files and convert to float, values are still same as they write in xml file. But after create annotation, top / left values change. Why ?
Save step are :
- Load an TIFF 300 DPI in gdViewer.
- Design an anotation using "AddRectangleHighlighterAnnotInteractive"
- Saving annotation to XML file. Values look like :
<nom>Zone 1</nom>
<top>1,37816441</top>
<left>0,9935212</left>
<width>0,26279</width>
<height>0,2826042</height>
Load step are :
- Load an TIFF 300 DPI in gdViewer (the same use for save step).
- Load values top/left/size from XML files and convert it to float. Resulting converted values are same as saved values :
Code: Select all
float zoneLeft = float.Parse(zleft.Value); // 0,9935212
float zoneTop = float.Parse(ztop.Value); // 1,37816441
...
Code: Select all
AnnotationRectangleHighlighter nvano = mgr.AddRectangleHighlighterAnnot(acolor, zoneLeft, zoneTop, zoneWidth, zoneHeight);
nvano.Top = 1,51946652 instead of 1,37816441
nvano.Left = 1,1249162 instead of 0,9935212
So why top/left value change and are not the same after using it with AddAnnotation ?
I try this with the lastest version : 9.3.17
Dev tools : MS Vs2010 pro, Win 7 Pro x64