API

Function GenerateBase64StringFromPixelData

  • Transform some pixel data to a base64 string

    Parameters

    • pixels: ArrayBufferView

      defines the pixel data to transform to base64

    • size: ISize

      defines the width and height of the (texture) data

    • invertY: boolean = false

      true if the data must be inverted for the Y coordinate during the conversion

    Returns Nullable<string>

    The base64 encoded string or null