• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TiledLayer API Question

 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Constructor: TiledLayer(int columns, int rows, Image image, int tileWidth, int tileHeight) and the method: getCellHeight() and getCellWidth() I wonder if the Image size and Cell size are the same? another words, the tileWidth and Cell Width, tileHeight and CellWidth are the same, or can be difference?
 
Aryan Khan
Ranch Hand
Posts: 290
Java Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Here is my understanding
There is nothing like cells
the columns and rows make the cells and the width and the height makes the cell height and width, n the image is cutted to fit into the number of cells. So basically the answer to ur question is NO.

HTH
ASK
 
Alibabra Sanjie
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with you, thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic