summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorManolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com>2021-12-12 01:05:25 +0200
committerManolis Papadeas <35376950+OverloadedOrama@users.noreply.github.com>2021-12-12 14:24:04 +0200
commit453912d48d320e358480d768414e8373964c51b1 (patch)
treed382752f77358d0ce36c3054d59d11c89e390adb /doc/classes
parent092a2861277e7df87aec10516d713d0bf4adba79 (diff)
Expose BitMap's `convert_to_image` and `resize` methods to GDScript
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/BitMap.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/classes/BitMap.xml b/doc/classes/BitMap.xml
index dc655ee3b0..ebcdcab75e 100644
--- a/doc/classes/BitMap.xml
+++ b/doc/classes/BitMap.xml
@@ -9,6 +9,12 @@
<tutorials>
</tutorials>
<methods>
+ <method name="convert_to_image" qualifiers="const">
+ <return type="Image" />
+ <description>
+ Returns an image of the same size as the bitmap and with a [enum Image.Format] of type [code]FORMAT_L8[/code]. [code]true[/code] bits of the bitmap are being converted into white pixels, and [code]false[/code] bits into black.
+ </description>
+ </method>
<method name="create">
<return type="void" />
<argument index="0" name="size" type="Vector2" />
@@ -64,6 +70,13 @@
[code]epsilon[/code] is passed to RDP to control how accurately the polygons cover the bitmap: a lower [code]epsilon[/code] corresponds to more points in the polygons.
</description>
</method>
+ <method name="resize">
+ <return type="void" />
+ <argument index="0" name="new_size" type="Vector2" />
+ <description>
+ Resizes the image to [code]new_size[/code].
+ </description>
+ </method>
<method name="set_bit">
<return type="void" />
<argument index="0" name="position" type="Vector2" />