sorry i dont know MagXXXXX.pas units neither their .dll,
i gave general examples,
if MAGxxx uses overlay to display something, my method fail. that i think your warning is telling.
I'm sorry!
...using the MagSetImageScalingCallback() function, which is described as below...
can you show that?