1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Merge pull request #20157 from GodotExplorer/image-load-webp

Add webp buffer loader for Image
This commit is contained in:
Juan Linietsky
2018-07-20 12:00:21 -03:00
committed by GitHub
5 changed files with 70 additions and 53 deletions

View File

@@ -350,6 +350,15 @@
Loads an image from the binary contents of a PNG file.
</description>
</method>
<method name="load_webp_from_buffer">
<return type="int" enum="Error">
</return>
<argument index="0" name="buffer" type="PoolByteArray">
</argument>
<description>
Loads an image from the binary contents of a WebP file.
</description>
</method>
<method name="lock">
<return type="void">
</return>