目录

Tile

Class Info

public class Tile

Defines the minimum unit of a TileOverlay object. To create a Tile object, call the getTile method of TileProvider.

Public Field Summary

Qualifier and Type

Field and Description

byte[]

data

A byte array containing image data. To create the image, call the decodeByteArray(byte[], int, int) method in the BitmapFactory class.

int

height

Tile height, in pixels.

int

width

Tile width, in pixels.

Public Constructor Summary

Constructor Name

Tile(int width, int height, byte[] data)

Creates a Tile object based on specified parameters.

Public Method Summary

Qualifier and Type

Method Name and Description

int

describeContents()

Returns the description of the current object. By default, 0 is returned.

void

writeToParcel(Parcel out, int flags)

Serializes data.

Public Constructors

[h2]Tile

Constructor

public Tile(int width, int height, byte[] data)

Creates a Tile object based on specified parameters.

Parameters

Name

Description

width

Tile width, in pixels.

height

Tile height, in pixels.

data

A byte array containing image data. To create the image, call the decodeByteArray(byte[], int, int) method in the BitmapFactory class.