09-25-2020, 02:31 PM
Hi,
I am trying to do the following:-
so that you cannot zoom out further than the fitted zoom
but this doesn't work presumably because the FitToHeight is working in another thread so the ViewboxLimits are set too soon before the Fit is completed.
how can I synchronise this correctly.
Ive been trying to calculate the ViewboxLimits manually but finding it a difficult with the various aspect ratios of the image and zoompanel ....
Jez
I am trying to do the following:-
Code:
zp.FitToHeight();
zp.ViewboxLimits = zp.Viewbox;
so that you cannot zoom out further than the fitted zoom
but this doesn't work presumably because the FitToHeight is working in another thread so the ViewboxLimits are set too soon before the Fit is completed.
how can I synchronise this correctly.
Ive been trying to calculate the ViewboxLimits manually but finding it a difficult with the various aspect ratios of the image and zoompanel ....
Jez