---
title: "BufferToPixelDataFunction | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Type Alias BufferToPixelDataFunction

BufferToPixelDataFunction: (ArrayBuffer: any) \=> Promise<[PixelData](https://docs.maptiler.com/sdk-js/api-reference/types/PixelData/)\>

Type for the function that decodes an image file ArrayBuffer into valid pixel data

#### Type Declaration

-   -   (ArrayBuffer: any): Promise<[PixelData](https://docs.maptiler.com/sdk-js/api-reference/types/PixelData/)\>
    -   #### Parameters
        
        -   ArrayBuffer: any
        
        #### Returns Promise<[PixelData](https://docs.maptiler.com/sdk-js/api-reference/types/PixelData/)\>
