summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJerome67000 <jerome.gully0@gmail.com>2018-01-06 13:10:37 +0100
committerJerome67000 <jerome.gully0@gmail.com>2018-01-06 13:20:45 +0100
commitb5885c43eb479d1ea8beb71aac09b118a08cb855 (patch)
treeb9244fb6204a26e9a36525fb43eb4845de07d420 /doc
parent8e8240450edc48f4fb379e593a4ef7f54ab656b7 (diff)
Fix crash when using Image.resize() without calling Image.create() first
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Image.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Image.xml b/doc/classes/Image.xml
index a01ffc99be..80bef2b385 100644
--- a/doc/classes/Image.xml
+++ b/doc/classes/Image.xml
@@ -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()