From c6b986fa07e308043139e74581c211ba53bf5c00 Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 4 Jun 2010 20:48:18 +0000 Subject: *** empty log message *** --- html/examples/rotate_transparent.lua | 4 ++++ 1 file changed, 4 insertions(+) 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() -- cgit v1.2.3