I really fail at placing my tilesheet inside a scrollablePane and then with the help of the scrollbars pick the correct tile at mouse cursor position.
In fact my code work well with 24x24 tiles and corresponding tileSheet (like 240x480 or 216x96).
The scrollablePane don't stretched my image and limit the scroll content to the exact size of my staticImage.
Unfortunately it's not the case for 200x200 tiles.
The full static image TileSheet is resized from 800x1000 to 800x770(???) while the scrollablePane content is at right size (800x1000) and show blank space at his end.
ImageSet getNativeResolution return a power of 2 1024x1024 while ImageSet getImageWidth or getImageHeight return 800x1000 too.
I don't get it...
setAutoScalingEnabled(False) isn't working ??
In fact my code work well with 24x24 tiles and corresponding tileSheet (like 240x480 or 216x96).
The scrollablePane don't stretched my image and limit the scroll content to the exact size of my staticImage.
Unfortunately it's not the case for 200x200 tiles.
The full static image TileSheet is resized from 800x1000 to 800x770(???) while the scrollablePane content is at right size (800x1000) and show blank space at his end.
ImageSet getNativeResolution return a power of 2 1024x1024 while ImageSet getImageWidth or getImageHeight return 800x1000 too.
I don't get it...
setAutoScalingEnabled(False) isn't working ??