In the internet only examples and algorithms without loss of quality. How easy is it to zoom in?
1 answer
Use TCanvas.StretchDraw
. Depending on the ratio of the linear dimensions of the Rect
parameter to the linear dimensions of the Graphic
parameter, the image will be drawn enlarged or reduced.
There is no "algorithm", just follow the trace. Ratio for each receiver pixel:
where, A is the source, B is the receiver, kx, ky are the horizontal and vertical scaling factors, respectively.
- Not. I need exactly the algorithm (or link to it) - ololo
|