Dynamic Random Composition create 1px gap between images, why?
Starting from DeepZoom Browse by Tag sample provide by Kirupa, I made my one, with some changes, that allows me to switch between multiple sources.
All is working as expected, but opposed to Kirupa Sample that uses Margin to position each Image, I´m not using it, so in my case all images are arranged side-by-side. I was supposed to not exist any GAP between each image, but it is there. The only way I found to hide such gap, is work on Xoffset and Yoffset, but it consumes a lot of time, because I have to try and see what happens.
I really did not found a way (with info available at SubImage) how to calculate 1px to provide such overlap.
On the other hand, we I look at composition exported from DeepZoom Composer, there is no such gap, but I notice looking at dzc_output.xml, that (even using images with exact same size), ViewportWidth, X, Y varies between images.
Also, I´m thinking, if such gap is already in image and the only way is overlap each other.
So there is a way to eliminate such gap, other than overlap?
If not, what is the correct way to calculate it and correct X,Y coords.
By the way I´m using Random as is is in sample.
Appreciate any help.
Tks