Merge pull request #55841 from OverloadedOrama/expose-bitmap-methods
This commit is contained in:
commit
894e2fddda
2 changed files with 15 additions and 0 deletions
|
|
@ -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" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue