Hello, thanks for reading.
I have a large image file.
I wish to display only a part of it on a “rectangle”, but not a part of it from the center of the large image. Using a container is posible to display a part but always focus on center of image.
Imagine a large map in 5000x5000, you need to focus a window on somewhere of that map in a 200x200 window, its like a zoom to certain part of image.
Already read abaout “Mask” but it not seems what i´m looking for.
I think in the container should be some “anchor” but it does not work.
Any help?? The following code, put the imagem, and display part of it, but centered…
[lua]
local function Mapa()
[lua] container = display.newContainer( 350, 350 )
container:translate( 350, 800 )
local mapatodo = display.newImage( “map.png” )
container:insert( mapatodo, false ) – insert and center bkgd[/lua]
end
[/lua]