Showing the changes to interface/src/scripting/WindowScriptingInterface.h (1 of 1 file). Show all
Unified · Split
| @@ -334,9 +334,9 @@ public slots: · 333 unmodified lines | ||
| 334 | 334 | * dimensions is adjusted in order to match the aspect ratio. |
| 335 | 335 | * @param {string} [filename=""] - If a filename is not provided, the image is saved as "overte-snap-by-<user |
| 336 | 336 | * name>-on-YYYY-MM-DD_HH-MM-SS". |
| 337 | − * <p>Still images are saved in JPEG or PNG format according to the extension provided — <code>".jpg"</code>, | |
| 338 | − * <code>".jpeg"</code>, or <code>".png"</code> — or if not provided then in JPEG format with an extension of | |
| 339 | − * <code>".jpg"</code>. Animated images are saved in GIF format.</p> | |
| 337 | + * <p>Still images are saved in JPEG, PNG or WEBP format according to the extension provided — <code>".jpg"</code>, | |
| 338 | + * <code>".jpeg"</code>, <code>".png"</code>, or <code>".webp"</code> — or if not provided then in the format chosen in general settings, | |
| 339 | + * Default is PNG. Animated images are saved in GIF format.</p> | |
| 340 | 340 | * |
| 341 | 341 | * @example <caption>Using the snapshot function and signals.</caption> |
| 342 | 342 | * function onStillSnapshotTaken(path, notify) { |
| @@ -371,11 +371,11 @@ public slots: · 28 unmodified lines | ||
| 371 | 371 | * @function Window.takeSecondaryCameraSnapshot |
| 372 | 372 | * @param {boolean} [notify=true] - This value is passed on through the {@link Window.stillSnapshotTaken|stillSnapshotTaken} |
| 373 | 373 | * signal. |
| 374 | − * @param {string} [filename=""] - If a filename is not provided, the image is saved as "overte-snap-by-<user | |
| 374 | + * @param {string} [filename=""] - If a filename is not provided, the image is saved as "overte-snap-by-<user | |
| 375 | 375 | * name>-on-YYYY-MM-DD_HH-MM-SS". |
| 376 | − * <p>Images are saved in JPEG or PNG format according to the extension provided — <code>".jpg"</code>, | |
| 377 | − * <code>".jpeg"</code>, or <code>".png"</code> — or if not provided then in JPEG format with an extension of | |
| 378 | − * <code>".jpg"</code>.</p> | |
| 376 | + * <p>Still images are saved in JPEG, PNG or WEBP format according to the extension provided — <code>".jpg"</code>, | |
| 377 | + * <code>".jpeg"</code>, <code>".png"</code>, or <code>".webp"</code> — or if not provided then in the format chosen in general settings, | |
| 378 | + * Default is PNG. Animated images are saved in GIF format.</p> | |
| 379 | 379 | */ |
| 380 | 380 | void takeSecondaryCameraSnapshot(const bool& notify = true, const QString& filename = QString()); |
| 381 | 381 | |
| @@ -390,11 +390,11 @@ public slots: · 8 unmodified lines | ||
| 390 | 390 | * otherwise it is saved as an equirectangular image. |
| 391 | 391 | * @param {boolean} [notify=true] - This value is passed on through the {@link Window.stillSnapshotTaken|stillSnapshotTaken} |
| 392 | 392 | * signal. |
| 393 | − * @param {string} [filename=""] - If a filename is not provided, the image is saved as "overte-snap-by-<user | |
| 393 | + * @param {string} [filename=""] - If a filename is not provided, the image is saved as "overte-snap-by-<user | |
| 394 | 394 | * name>-on-YYYY-MM-DD_HH-MM-SS". |
| 395 | − * <p>Images are saved in JPEG or PNG format according to the extension provided — <code>".jpg"</code>, | |
| 396 | − * <code>".jpeg"</code>, or <code>".png"</code> — or if not provided then in JPEG format with an extension of | |
| 397 | − * <code>".jpg"</code>.</p> | |
| 395 | + * <p>Still images are saved in JPEG, PNG or WEBP format according to the extension provided — <code>".jpg"</code>, | |
| 396 | + * <code>".jpeg"</code>, <code>".png"</code>, or <code>".webp"</code> — or if not provided then in the format chosen in general settings, | |
| 397 | + * Default is PNG. Animated images are saved in GIF format.</p> | |
| 398 | 398 | */ |
| 399 | 399 | void takeSecondaryCamera360Snapshot(const glm::vec3& cameraPosition, const bool& cubemapOutputFormat = false, const bool& notify = true, const QString& filename = QString()); |
| 400 | 400 | |