Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion magick/wand/image.lua
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ do
blob = blob.wand
end
op = assert(composite_operators:to_int(op), "invalid operator type")
return handle_result(self, lib.MagickCompositeImage(self.wand, blob, op, x, y))
return handle_result(self, lib.MagickCompositeImage(self.wand, blob, op, 1, x, y))
end,
get_blob = function(self)
local len = ffi.new("size_t[1]", 0)
Expand Down
2 changes: 1 addition & 1 deletion magick/wand/image.moon
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class Image extends require "magick.base_image"

op = assert composite_operators\to_int(op), "invalid operator type"
handle_result @,
lib.MagickCompositeImage @wand, blob, op, x, y
lib.MagickCompositeImage @wand, blob, op, 1, x, y

get_blob: =>
len = ffi.new "size_t[1]", 0
Expand Down
1 change: 1 addition & 0 deletions magick/wand/lib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ ffi.cdef([[ typedef void MagickWand;

MagickBooleanType MagickCompositeImage(MagickWand *wand,
const MagickWand *source_wand,const CompositeOperator compose,
const MagickBooleanType,
const ssize_t x,const ssize_t y);

GravityType MagickGetImageGravity(MagickWand *wand);
Expand Down
1 change: 1 addition & 0 deletions magick/wand/lib.moon
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ ffi.cdef [[

MagickBooleanType MagickCompositeImage(MagickWand *wand,
const MagickWand *source_wand,const CompositeOperator compose,
const MagickBooleanType,
const ssize_t x,const ssize_t y);

GravityType MagickGetImageGravity(MagickWand *wand);
Expand Down