LogoPixi’VN
indexFunctions

Function: showImageContainer()

> showImageContainer(alias, imageUrls, options?): Promise<ImageContainer>

Defined in: src/canvas/functions/image-container-utility.ts:44

Add a list of images in the container, after that, the images are added and shown in the canvas.

Parameters

alias

string

The unique alias of the container. You can use this alias to refer to this container

imageUrls

string[]

The url of the image.

options?

ImageContainerOptions<ImageSprite<ImageSpriteMemory>>

The options of the container.

Returns

Promise<ImageContainer>

This function returns an ImageContainer that you can use to manipulate the component.

Example

let bunny = showImageContainer("bunny", ["https://pixijs.com/assets/bunny-body.png", "https://pixijs.com/assets/bunny-eyes.png"])

On this page