Skip to content

Commit

Permalink
im7: Add SetImageMask test
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfx committed Apr 25, 2021
1 parent ec4cf7b commit 60ac9c2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions imagick/magick_wand_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,22 @@ func TestImageAlpha(t *testing.T) {
}
}

func TestImageMask(t *testing.T) {
mw := NewMagickWand()
mw.ReadImage(`logo:`)

mask := NewMagickWand()
mask.ReadImage(`logo:`)

if err := mw.SetImageMask(PIXEL_MASK_READ, mask); err != nil {
t.Fatal(err)
}
if err := mw.SetImageMask(PIXEL_MASK_WRITE, mask); err != nil {
t.Fatal(err)
}

}

func TestImageChannelMask(t *testing.T) {
mw := NewMagickWand()
mw.ReadImage(`logo:`)
Expand Down

0 comments on commit 60ac9c2

Please sign in to comment.