Code: Select all
# 5 x 4 color matrix
$image->Recolor([1.44,0,0,0,-27.94,0,1.44,0,0,-27.94,0,0,1.44,0,-27.94,0,0,0,1,0]);
# 5 x 5 color matrix
$image->Recolor([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0.5, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]);
$image->Recolor(matrix=>"1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0.5, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1");
$image->Level(level=>'20%');
I am using ImageMagick ver: ImageMagick 6.2.4 02/10/07 Q16
Perl is 5.something
If anyone knows the correct syntax, any help would be greatly appreciated.