B
btb900
Guest
I am using a display that inherits from a Control in C#. I would like to be able to click on a location and zoom into that location and move that location to the center of the control where zoom in.
how do I do this ? I know I can use:
g.DrawImage(currentFrame, imagex, imagey, imgWidth, imgHeight);
to redraw the bmp with the zoom information
and I was using this :
imagex = (zoomPointX * (-1) * (zoomFactor - 1)); imagey = (zoomPointY* (-1) * (zoomFactor - 1));
zoomPointX and zoomPointY is where I click at. but I am not sure how to zoom around that location plus more is to the center of the bmp.
can anyone help me ?
Continue reading...
how do I do this ? I know I can use:
g.DrawImage(currentFrame, imagex, imagey, imgWidth, imgHeight);
to redraw the bmp with the zoom information
and I was using this :
imagex = (zoomPointX * (-1) * (zoomFactor - 1)); imagey = (zoomPointY* (-1) * (zoomFactor - 1));
zoomPointX and zoomPointY is where I click at. but I am not sure how to zoom around that location plus more is to the center of the bmp.
can anyone help me ?
Continue reading...