AnnGetBitmapDpiX example for C++ Builder
{
float x;
float y;
HANNOBJECT hAuto;
hAuto= LEADAnn1->AnnCreate(ANNOBJECT_AUTOMATION, false, false);
LEADAnn1->AnnGetBitmapDpiX(hAuto, x);
LEADAnn1->AnnGetBitmapDpiY(hAuto, y);
ShowMessage(FloatToStr(x) + ", " + FloatToStr(y));
LEADAnn1->AnnSetBitmapDpiX(hAuto, x + 2, false);
LEADAnn1->AnnSetBitmapDpiY(hAuto, y + 2, false);
LEADAnn1->AnnGetBitmapDpiX(hAuto, x);
LEADAnn1->AnnGetBitmapDpiY (hAuto, y);
ShowMessage(FloatToStr(x) + ", " + FloatToStr(y));
}