Package mil.nga.geopackage.tiles
Class GeoPackageTile
- java.lang.Object
 - 
- mil.nga.geopackage.tiles.GeoPackageTile
 
 
- 
public class GeoPackageTile extends Object
GeoPackage tile wrapper containing tile dimensions and the image or raw image bytes- Since:
 - 1.2.0
 - Author:
 - osbornb
 
 
- 
- 
Constructor Summary
Constructors Constructor Description GeoPackageTile(int width, int height, byte[] data)ConstructorGeoPackageTile(int width, int height, BufferedImage image)Constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()Get image dataintgetHeight()Get heightBufferedImagegetImage()Get the imageintgetWidth()Get widthvoidsetData(byte[] data)Set the image datavoidsetImage(BufferedImage image)Set the image 
 - 
 
- 
- 
Constructor Detail
- 
GeoPackageTile
public GeoPackageTile(int width, int height, BufferedImage image)Constructor- Parameters:
 width- tile widthheight- tile heightimage- tile image
 
- 
GeoPackageTile
public GeoPackageTile(int width, int height, byte[] data)Constructor- Parameters:
 width- tile widthheight- tile heightdata- tile data
 
 - 
 
- 
Method Detail
- 
getWidth
public int getWidth()
Get width- Returns:
 - width
 
 
- 
getHeight
public int getHeight()
Get height- Returns:
 - height
 
 
- 
getImage
public BufferedImage getImage()
Get the image- Returns:
 - image
 
 
- 
getData
public byte[] getData()
Get image data- Returns:
 - image data
 
 
- 
setImage
public void setImage(BufferedImage image)
Set the image- Parameters:
 image- buffered image
 
- 
setData
public void setData(byte[] data)
Set the image data- Parameters:
 data- image data
 
 - 
 
 -