From 8f05bd97b5c03510937270af23cc9f513b33be4b Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sat, 4 Jun 2022 16:05:55 -0500 Subject: Add support for saving WebP images --- doc/classes/Image.xml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'doc/classes') diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml index 20e26714bc..5472ffe4da 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -397,12 +397,30 @@ - Saves the image as a PNG file to [code]path[/code]. + Saves the image as a PNG file to the file at [code]path[/code]. + Saves the image as a PNG file to a byte array. + + + + + + + + + Saves the image as a WebP (Web Picture) file to the file at [code]path[/code]. By default it will save lossless. If [code]lossy[/code] is true, the image will be saved lossy, using the [code]quality[/code] setting between 0.0 and 1.0 (inclusive). + + + + + + + + Saves the image as a WebP (Web Picture) file to a byte array. By default it will save lossless. If [code]lossy[/code] is true, the image will be saved lossy, using the [code]quality[/code] setting between 0.0 and 1.0 (inclusive). -- cgit v1.2.3