File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 1
1
# FlipType
2
2
3
+ Type of flipping to be used in [ image: flip ] ( image.md#imageflip )
4
+
3
5
## FlipType.HORIZONTAL
6
+ Defines a type of image flip that horizontally flips an image across the vertical axis.
4
7
5
8
## FlipType.VERTICAL
9
+ Defines a type of image flip that vertically flips an image across the horizontal axis.
10
+
11
+ ## FlipType.DIAGONAL
12
+ Defines a type of image flip that both vertically and horizontally flips an image across the diagonal axis.
Original file line number Diff line number Diff line change @@ -82,12 +82,16 @@ are modified).
82
82
local w = image .width
83
83
```
84
84
85
+ Returns the width of the image in pixels.
86
+
85
87
## Image.height
86
88
87
89
``` lua
88
90
local h = image .height
89
91
```
90
92
93
+ Returns the height of the image in pixels.
94
+
91
95
## Image.bounds
92
96
93
97
``` lua
@@ -337,3 +341,12 @@ local rectangle = image:shrinkBounds(refColor)
337
341
Returns the shrunken bounds (a [ rectangle] ( rectangle.md#rectangle ) ) of
338
342
the image removing all the empty space of borders using the mask color
339
343
or the given reference [ color] ( color.md#color ) in ` refColor ` .
344
+
345
+ ## Image: flip ()
346
+
347
+ ``` lua
348
+ image :flip ()
349
+ image :flip (FlipType .VERTICAL )
350
+ ```
351
+
352
+ Flips an image along an axis defined by a [ FlipType] ( fliptype.md ) . Flips horizontally if [ FlipType] ( fliptype.md ) is not specified by default.
You can’t perform that action at this time.
0 commit comments