Zoom in a box
Posted: 04 Feb 2008, 19:21
Hi,
we want to paint an zooming-area in a separat box.
The rectangle for the zoom-area is not the problem, but the method for calculated !!! ( Our example is not exactly )
for example:
iXw - Width of the select-box
AnchorX - LeftCorner of the s.b.
curX - RightCorner of the s.b.
iXw := pbImage.clientREct.Right;
FScale := iXw / (Curx - AnchorX) * FScale ;
fx := round(FScale / 100 * (-1)*(AnchorX-fx));
fy := round(FScale / 100 * (-1)*(AnchorY-fy));
pbImage.Invalidate;
Can you help us ?
( Delphi 2007, CadImageDLL)
we want to paint an zooming-area in a separat box.
The rectangle for the zoom-area is not the problem, but the method for calculated !!! ( Our example is not exactly )
for example:
iXw - Width of the select-box
AnchorX - LeftCorner of the s.b.
curX - RightCorner of the s.b.
iXw := pbImage.clientREct.Right;
FScale := iXw / (Curx - AnchorX) * FScale ;
fx := round(FScale / 100 * (-1)*(AnchorX-fx));
fy := round(FScale / 100 * (-1)*(AnchorY-fy));
pbImage.Invalidate;
Can you help us ?
( Delphi 2007, CadImageDLL)