---
title: "AlphaImage | 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.

# Interface AlphaImage

An image with alpha color value

interface AlphaImage {  
    [data](#data): Uint8Array;  
    [height](#height): number;  
    [width](#width): number;  
    [clone](#clone-1)(): AlphaImage;  
    [resize](#resize-1)(size: [Size](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Size/)): void;  
}

##### Index

### Properties

[data](#data) [height](#height) [width](#width)

### Methods

[clone](#clone) [resize](#resize)

## Properties

### data[](#data)

data: Uint8Array

### height[](#height)

height: number

### width[](#width)

width: number

## Methods

### clone[](#clone)

-   clone(): AlphaImage[](#clone-1)
    
    #### Returns AlphaImage
    

### resize[](#resize)

-   resize(size: [Size](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Size/)): void[](#resize-1)
    
    #### Parameters
    
    -   size: [Size](https://docs.maptiler.com/sdk-js/api-reference/types/Externals.Size/)
    
    #### Returns void
