%T#13745 Comment added by zoaix: Add transpose (like in python pillow module) and smooth resizing in rocklua
Rockbox via rockbox-sf <[email protected]> Fri, 10 Jul 2026 03:26:57 +0000
| Newsgroups | gmane.comp.systems.archos.rockbox.sourceforge |
|---|---|
| Message-ID | <[email protected]> |
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#13745 - Add transpose (like in python pillow module) and smooth resizing in rocklua
User who did this - Ivan Romaniuk-Mikhailovsky (zoaix)
----------
I make this in my own module
flip_rotate = function(src_img, angle, clip)
src_width = src_img:width()
src_height = src_img:height()
if not angle then
angle = 1
end
local func = nil
local img = nil
if angle == 0 then
return src_img
elseif angle == 1 then
img = rb.new_image(src_height, src_width)
func = function(_, x, y)
return src_img:get(y, src_height - x + 1)
end
elseif angle == 2 then
img = rb.new_image(src_width, src_height)
func = function(_, x, y)
return src_img:get(src_width - x + 1, src_height - y + 1)
end
elseif angle == 3 then
img = rb.new_image(src_height, src_width)
func = function(_, x, y)
return src_img:get(src_width - y + 1, x)
end
end
img:marshal(nil, nil, nil, nil, nil, nil, clip, func)
return img
end
----------
More information can be found at the following URL:
https://www.rockbox.org/tracker/task/13745#comment45626
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
--
rockbox-sf mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-sf