Function GenerateBase64StringFromPixelData
-
GenerateBase64StringFromPixelData(
pixels: ArrayBufferView,
size: ISize,
invertY?: boolean,
): Nullable<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
- pixels: ArrayBufferView
Transform some pixel data to a base64 string