Is there a way to limit how far the viewer can zoom into or out of the picture?I would like to stop the zooming in when the viewer reaches the pixel level, and the zooming out to the size of the picture.To be able to zoom until the picture content either looks blurry or is small on the screen is not very appealing to me.Is there a way to achieve this, to limit the zoom range?kind regards,Sam
private void Zoom(double newzoom, Point p) { if (newzoom < 0.45) { newzoom = 0.45; } if (newzoom > 128) { newzoom = 128; } msi.ZoomAboutLogicalPoint(newzoom / zoom, p.X, p.Y); zoom = newzoom; }