Skip to content

RasterTile

Namespace: ThinkGeo.Core

This class represents a NativeImageTile, which is defined as scale, RectangleBox and a byte array for its tileView bitmap.

public class RasterTile : Tile, System.IDisposable

Inheritance objectTileRasterTile
Implements IDisposable

Properties

Bitmap

Gets or sets the Bitmap.

public GeoImage Bitmap { get; set; }

Property Value

GeoImage

RasterData

This property is the Bitmap showing the tileView image.

public Byte[] RasterData { get; set; }

Property Value

Byte[]

IsFromCache

Gets or sets the IsFromCache.

public bool IsFromCache { get; set; }

Property Value

bool

Content

Gets or sets the Content.

public Byte[] Content { get; set; }

Property Value

Byte[]

ZoomIndex

Gets or sets the ZoomIndex.

public int ZoomIndex { get; set; }

Property Value

int

X

Gets or sets the X.

public long X { get; set; }

Property Value

long

Column

Gets or sets the Column.

public long Column { get; set; }

Property Value

long

Y

Gets or sets the Y.

public long Y { get; set; }

Property Value

long

Row

Gets or sets the Row.

public long Row { get; set; }

Property Value

long

CacheId

The CacheId of the Tile. This is for avoiding the issue that Tile A is saved to Tile B's Cache in a multi-threading environment.

public string CacheId { get; set; }

Property Value

string

Constructors

RasterTile()

This is the default constructor without passing any parameters. All its properties should be set via the properties.

public RasterTile()

RasterTile(Byte[], int, long, long)

Initializes a new instance of the RasterTile class.

public RasterTile(Byte[] rasterData, int zoom, long x, long y)

Parameters

rasterData Byte[]

zoom int

x long

y long

Methods

Finalize()

This method is the destructor of this class. Destructor cannot be called and only will be invoked automatically.

protected void Finalize()

Returns

void

Dispose()

This method is targeting releasing or resetting unmanaged resources.

public void Dispose()

Returns

void