Further changes to Image class docs
Were missed when squashing the previous 024c4f14
.
[ci skip]
This commit is contained in:
parent
c7e53f1934
commit
6aa331e581
1 changed files with 4 additions and 4 deletions
|
@ -318,7 +318,7 @@
|
||||||
<return type="void">
|
<return type="void">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Locks the data and prevents changes.
|
Locks the data for writing access.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="normalmap_to_xy">
|
<method name="normalmap_to_xy">
|
||||||
|
@ -379,10 +379,10 @@
|
||||||
Sets the [Color] of the pixel at [code](x, y)[/code] if the image is locked. Example:
|
Sets the [Color] of the pixel at [code](x, y)[/code] if the image is locked. Example:
|
||||||
[codeblock]
|
[codeblock]
|
||||||
var img = Image.new()
|
var img = Image.new()
|
||||||
img.unlock()
|
|
||||||
img.set_pixel(x, y, color) # Does not have an effect
|
|
||||||
img.lock()
|
img.lock()
|
||||||
img.set_pixel(x, y, color) # Works
|
img.set_pixel(x, y, color) # Works
|
||||||
|
img.unlock()
|
||||||
|
img.set_pixel(x, y, color) # Does not have an effect
|
||||||
[/codeblock]
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
|
@ -404,7 +404,7 @@
|
||||||
<return type="void">
|
<return type="void">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<description>
|
||||||
Unlocks the data for writing access.
|
Unlocks the data and prevents changes.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
</methods>
|
</methods>
|
||||||
|
|
Loading…
Add table
Reference in a new issue