imageBytesfunction
What a decoded picture holds in memory, with its mipmaps (4/3 of its bytes): the bytes of a map source.
Import it
import { imageBytes } from "@johnmorrisdotca/chikyu-earth/door";
Definition
function imageBytes(tile: ImageTile): number
Parameters
| Name | Type | Description |
|---|---|---|
tile | ImageTile | The tile. |
Returns
number
Bytes.
Examples
import { imageBytes } from "@johnmorrisdotca/chikyu-earth/door";
console.log(imageBytes({ width: 512, height: 512, image: { width: 512, height: 512 } }));1398102What it prints (run when this page was built)