public class DataUris
extends java.lang.Object
| Constructor and Description |
|---|
DataUris() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
createBufferDataUri(BufferModel bufferModel)
Create a data URI for the data of the given
BufferModel |
static java.lang.String |
createImageDataUri(java.lang.String currentUri,
ImageModel imageModel)
Create the data URI for the data of the given
ImageModel |
public static java.lang.String createBufferDataUri(BufferModel bufferModel)
BufferModelbufferModel - The BufferModelpublic static java.lang.String createImageDataUri(java.lang.String currentUri,
ImageModel imageModel)
ImageModelcurrentUri - The current URI of the imageimageModel - The ImageModelGltfException - If the image format (and thus, the MIME type)
can not be determined from the image dataCopyright © 2024. All Rights Reserved.