Constructors
constructor
- new GeoPackageImage(image: any, width: number, height: number, format?: string): GeoPackageImage
-
Parameters
-
image: any
-
width: number
-
height: number
-
format: string = 'image/png'
Methods
dispose
- dispose(): void
-
Returns void
getFormat
- getFormat(): string
-
Returns string
getHeight
- getHeight(): number
-
Returns number
getImage
- getImage(): any
-
Returns any
getImageData
- getImageData(): ImageData
-
Returns ImageData
getPixel
- getPixel(x: number, y: number): number
-
Returns number
getWidth
- getWidth(): number
-
Returns number
isPixelTransparent
- isPixelTransparent(x: number, y: number): boolean
-
Returns boolean
Image class to wrap HTML Images and CanvasKit Images and ImageBitmaps