Methods
Static
getImage
- getImage(data: string | Buffer | Uint8Array, contentType?: string): Promise<GeoPackageImage>
-
Parameters
-
data: string | Buffer | Uint8Array
-
contentType: string = 'image/png'
Static
getImageSize
- getImageSize(data: string | Buffer): ISizeCalculationResult
-
Returns ISizeCalculationResult
Static
getScaledImage
- getScaledImage(data: string | Buffer, scale: number): Promise<GeoPackageImage>
-
Parameters
-
data: string | Buffer
-
scale: number
Static
isFullyTransparent
- isFullyTransparent(data: Buffer | Uint8Array, width: any, height: any): Promise<boolean>
-
Parameters
-
data: Buffer | Uint8Array
-
width: any
-
height: any
Returns Promise<boolean>
Static
scaleImage
- scaleImage(image: any, scaledWidth: number, scaledHeight: number): Promise<GeoPackageImage>
-
Parameters
-
image: any
-
scaledWidth: number
-
scaledHeight: number
Static
writeImageToBytes
- writeImageToBytes(image: GeoPackageImage, imageFormat: ImageType, compressionQuality: number): Promise<Uint8Array>
-
Parameters
-
-
-
compressionQuality: number
Returns Promise<Uint8Array>
Get image for data
Returns