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 object → Tile → RasterTile
Implements IDisposable
Properties¶
Bitmap¶
Gets or sets the Bitmap.
public GeoImage Bitmap { get; set; }
Property Value¶
RasterData¶
This property is the Bitmap showing the tileView image.
public Byte[] RasterData { get; set; }
Property Value¶
IsFromCache¶
Gets or sets the IsFromCache.
public bool IsFromCache { get; set; }
Property Value¶
Content¶
Gets or sets the Content.
public Byte[] Content { get; set; }
Property Value¶
ZoomIndex¶
Gets or sets the ZoomIndex.
public int ZoomIndex { get; set; }
Property Value¶
X¶
Gets or sets the X.
public long X { get; set; }
Property Value¶
Column¶
Gets or sets the Column.
public long Column { get; set; }
Property Value¶
Y¶
Gets or sets the Y.
public long Y { get; set; }
Property Value¶
Row¶
Gets or sets the Row.
public long Row { get; set; }
Property Value¶
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¶
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¶
Dispose()¶
This method is targeting releasing or resetting unmanaged resources.
public void Dispose()