Page Summary
-
The
Tileclass holds information about a map tile, including its width, height, and image data. -
Tile data is stored as a byte array and is used to create the tile image.
-
The
Tileclass provides a constructor to create aTileobject with specified dimensions and data. -
Tileobjects can be written to and read from aParcelfor serialization.
Contains information about a Tile that is returned by a TileProvider.
Inherited Constant Summary
Field Summary
| public final byte[] | data | A byte array containing the image data. |
| public final int | height | The height of the image encoded by data in pixels. |
| public final int | width | The width of the image encoded by data in pixels. |
Public Constructor Summary
Public Method Summary
| void |
writeToParcel(Parcel out, int flags)
|
Inherited Method Summary
Fields
public final byte[] data
A byte array containing the image data. The image will be created from this data by calling
BitmapFactory.decodeByteArray(byte[], int, int).
Public Constructors
public Tile (int width, int height, byte[] data)
Constructs a Tile.
Parameters
| width | the width of the image in pixels |
|---|---|
| height | the height of the image in pixels |
| data | A byte array containing the image data. The image will be created from this data by
calling BitmapFactory.decodeByteArray(byte[], int, int).
|
Public Methods
public void writeToParcel (Parcel out, int flags)
Parameters
| out | |
|---|---|
| flags |