[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools] Re: Here is what we are trying to do...
|
What if you were to find the largest tile smaller than 1000x1000 which
scales down to an integral number of pixels in the thumbnail?
E.g.: 67 * 1000 / 10000 = 6.7, or 6 pixels in the thumbnail if you truncate
then the tile size would be 6 * 1000 / 6.7 = 895.522..., or 895 if you
truncate.
So (0,0) - (894, 894) would go in the first tile, to be scaled down to
(0,0) - (5,5) in the thumbnail.
The tile would be reused for (895,0) - (1789,894), to be scaled down to
(6,0) = (11,5) in the thumbnail.
And so on. You might still get some artifacts, e.g. if you have a vertical
line at X coordinate 895, but it should still be good enough for a
thumbnail.
Nick