Function extrudeTilesetToBuffer
- extrudeTilesetToBuffer(
tileWidth: number,
tileHeight: number,
inputPath: string,
options?: ImageOptions,
): Promise<Buffer> Parameters
- tileWidth: number
- tileHeight: number
- inputPath: string
Optional
options: ImageOptions = {}Optional
color?: string | number
Optional
extrusion?: number
Optional
margin?: number
Optional
mime?: JimpMime
Optional
spacing?: 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.