Class RawPngRasterTile
A raster tile containing an encoded RGBA PNG. Read about global elevation data.
Inherited Members
Namespace:Mapbox.Map
Assembly:Mapbox.Map.dll
Syntax
public sealed class RawPngRasterTile : RasterTile
Examples
Print the real world height, in meters, for each pixel:
var texture = new Texture2D(0, 0);
texture.LoadImage(tile.Data);
for (int i = 0; i < texture.width; i++)
{
for (int j = 0; j < texture.height; j++)
{
var color = texture.GetPixel(i, j);
var height = Conversions.GetAbsoluteHeightFromColor(color);
Console.Write("Height: " + height);
}
}