We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bae03ed commit 582082eCopy full SHA for 582082e
api/image.md
@@ -31,7 +31,9 @@ The `spec` parameter is an [image specification](imagespec.md#imagespec) object.
31
If you specify `otherImage`, it's equivalent to use
32
[`otherImage:clone()`](#imageclone). If you specify `Image(otherImage, rectangle)`
33
this will create a copy of the specified
34
-[rectangle](rectangle.md#rectangle) of `otherImage`.
+[rectangle](rectangle.md#rectangle) of `otherImage`. `Image(otherImage, rectangle)`
35
+may return `nil` if the [rectangle](rectangle.md#rectangle) is empty
36
+(i.e., if its width and/or height are equal to or less than zero).
37
38
If a `sprite` is given, the image will be a render of the first frame
39
of the [sprite](sprite.md#sprite). Note: You can use
0 commit comments