AnnGetScalarX example for Visual C++
long hCont;
m_pRasterAnn->AnnCreate (ANN_OBJECT_CONTAINER, FALSE, FALSE);
hCont = m_pRasterAnn->GetAnnObject();
CString msg2;
msg2.Format(TEXT("ScalarX: %f, ScalarY: %f, OffsetX: %f, OffsetY: %f"),
(double)m_pRasterAnn->AnnGetScalarX (hCont),
(double)m_pRasterAnn->AnnGetScalarY (hCont),
(double)m_pRasterAnn->AnnGetOffsetX (hCont),
(double)m_pRasterAnn->AnnGetOffsetY (hCont));
AfxMessageBox(msg2);
m_pRasterAnn->AnnSetScalarX (hCont, 1.5, FALSE);
m_pRasterAnn->AnnSetScalarY (hCont, 1.5, FALSE);
m_pRasterAnn->AnnSetOffsetX (hCont, 10, FALSE);
m_pRasterAnn->AnnSetOffsetY (hCont, 20, FALSE);
msg2.Format(TEXT("ScalarX: %f, ScalarY: %f, OffsetX: %f, OffsetY: %f"),
(double)m_pRasterAnn->AnnGetScalarX (hCont),
(double)m_pRasterAnn->AnnGetScalarY (hCont),
(double)m_pRasterAnn->AnnGetOffsetX (hCont),
(double)m_pRasterAnn->AnnGetOffsetY (hCont));
AfxMessageBox(msg2);