Function extrudeTilesetToBuffer
- extrudeTilesetToBuffer(
tileWidth: number,
tileHeight: number,
inputPath: string,
options?: ImageOptions,
): Promise<Buffer> Parameters
- tileWidth: number
- tileHeight: number
- inputPath: string
Optionaloptions: ImageOptions = {}Optionalcolor?: string | number
Optionalextrusion?: number
Optionalmargin?: number
Optionalmime?: JimpMime
Optionalspacing?: number
Returns Promise<Buffer>
- A promise that resolves to an image buffer, or rejects with an
error.
Accepts an image path and returns a Promise that resolves to a Buffer containing the extruded tileset image.