diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-11-07 16:38:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-07 16:38:09 +0100 |
commit | 329d2c1ced685a107b1c27e67b212b5620968a0a (patch) | |
tree | a737d8af45d01138c8b21ccb20c230614deade35 /doc/classes/Image.xml | |
parent | df6fa6c306409b28385e40c945fe7d5f201a3fd2 (diff) | |
parent | 0209e3790e4ab984b811f2994947ae71eef69b82 (diff) |
Merge pull request #42947 from Calinou/image-load-bmp-from-buffer
Add `Image.load_bmp_from_buffer()` for run-time BMP image loading
Diffstat (limited to 'doc/classes/Image.xml')
-rw-r--r-- | doc/classes/Image.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml index 20be20db34..3b108468de 100644 --- a/doc/classes/Image.xml +++ b/doc/classes/Image.xml @@ -346,6 +346,16 @@ Loads an image from file [code]path[/code]. See [url=https://docs.godotengine.org/en/latest/getting_started/workflow/assets/importing_images.html#supported-image-formats]Supported image formats[/url] for a list of supported image formats and limitations. </description> </method> + <method name="load_bmp_from_buffer"> + <return type="int" enum="Error"> + </return> + <argument index="0" name="buffer" type="PackedByteArray"> + </argument> + <description> + Loads an image from the binary contents of a BMP file. + [b]Note:[/b] Godot's BMP module doesn't support 16-bit per pixel images. Only 1-bit, 4-bit, 8-bit, 24-bit, and 32-bit per pixel images are supported. + </description> + </method> <method name="load_jpg_from_buffer"> <return type="int" enum="Error"> </return> |