Simplify sample range calculation (#38) Move most of the complexity to the image offset and cursor calculation which can be known only when the image is actually drawn.
Simplify sample range calculation (#38)
Move most of the complexity to the image offset and cursor calculation which can be known only when the image is actually drawn.

fengalin/media-toc,fengalin/media-toc