text
stringlengths
0
8.81k
Given a URI, returns the extension of the URI.
Name
Type
Description
uri
string
The Uri.
Returns:
The extension of the Uri.
Example:
//extension will be "czml";
const extension = Cesium.getExtensionFromUri('/Gallery/simple.czml?value=true&example=false');
getFilenameFromUri(uri) → string
engine/Source/Core/getFilenameFromUri.js 5
Given a URI, returns the last segment of the URI, removing any path or query information.
Name
Type
Description
uri
string
The Uri.
Returns:
The last segment of the Uri.
Example:
//fileName will be"simple.czml";
const fileName = Cesium.getFilenameFromUri('/Gallery/simple.czml?value=true&example=false');
getImagePixels(image, width, height) → ImageData
engine/Source/Core/getImagePixels.js 5
Extract a pixel array from a loaded image. Draws the image
into a canvas so it can read the pixels back.
Name
Type
Description
image
HTMLImageElement