diff options
author | scuri <scuri> | 2010-06-04 20:48:18 +0000 |
---|---|---|
committer | scuri <scuri> | 2010-06-04 20:48:18 +0000 |
commit | c6b986fa07e308043139e74581c211ba53bf5c00 (patch) | |
tree | 8c70e82bd8533539c1271db45624ccd683cb7fc1 /html | |
parent | 7be3bd466f1787931df9be41c4927e6482231d8a (diff) |
*** empty log message ***
Diffstat (limited to 'html')
-rw-r--r-- | html/examples/rotate_transparent.lua | 4 |
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() |