Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion magick/wand/image.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ do
end
return handle_result(self, lib.MagickSharpenImage(self.wand, radius, sigma))
end,
rotate = function(self, degrees, r, g, b)
rotate = function(self, degrees, r, g, b, a)
if r == nil then
r = 0
end
Expand All @@ -154,10 +154,14 @@ do
if b == nil then
b = 0
end
if a == nil then
a = 0
end
local pixel = ffi.gc(lib.NewPixelWand(), lib.DestroyPixelWand)
lib.PixelSetRed(pixel, r)
lib.PixelSetGreen(pixel, g)
lib.PixelSetBlue(pixel, b)
lib.PixelSetAlpha(pixel, a)
local res = {
handle_result(self, lib.MagickRotateImage(self.wand, pixel, degrees))
}
Expand Down