Fix crash when using Image.resize() without calling Image.create() first
This commit is contained in:
parent
8e8240450e
commit
b5885c43eb
2 changed files with 6 additions and 2 deletions
|
|
@ -395,6 +395,7 @@
|
|||
Sets the [Color] of the pixel at [code](x, y)[/code] if the image is locked. Example:
|
||||
[codeblock]
|
||||
var img = Image.new()
|
||||
img.create(img_width, img_height, false, Image.FORMAT_RGBA8)
|
||||
img.lock()
|
||||
img.set_pixel(x, y, color) # Works
|
||||
img.unlock()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue