Hierarchy

Methods

  • Create pag image from ArrayBuffer.

    Parameters

    • buffer: ArrayBuffer
    • width: number
    • height: number

    Returns PAGImage

  • Create pag image from image source or video source. Make sure the target pixel is shown on the screen. Like

    Image.onload = async () => {
    return await PAGImage.fromSource(Image)
    }

    Parameters

    • source: TexImageSource

    Returns PAGImage

  • Creates a PAGImage object from the specified backend texture, return null if the texture is invalid.

    Parameters

    • textureID: number
    • width: number
    • height: number
    • flipY: boolean

    Returns PAGImage

  • Set the transformation which will be applied to the content. The scaleMode property will be set to PAGScaleMode::None when this method is called.

    Parameters

    Returns void

Constructors

Properties

wasmIns: any
isDestroyed: boolean = false

Generated using TypeDoc