summaryrefslogtreecommitdiff
path: root/html
diff options
context:
space:
mode:
Diffstat (limited to 'html')
-rw-r--r--html/examples/rotate_transparent.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/html/examples/rotate_transparent.lua b/html/examples/rotate_transparent.lua
index 640826d..a6c87c7 100644
--- a/html/examples/rotate_transparent.lua
+++ b/html/examples/rotate_transparent.lua
@@ -63,6 +63,10 @@ image2 = im.ImageCreateBased(image, w, h)
im.ProcessRotate(image, image2, math.cos(math.pi/4), math.sin(math.pi/4), 1)
+--image2 = image:Clone() -- rotate and preserve size
+--im.ProcessRotateRef(image, image2, math.cos(math.pi/4), math.sin(math.pi/4), image:Width()/2, image:Height()/2, false, 1)
+
+
canvas:Activate()
canvas:Clear()