[Gambas-user] Sample code to convert image to b/w image
Safiur Rahman
isafiur at gmail.com
Sat Sep 16 21:34:57 CEST 2023
Hi
I want to achieve the following black-in-white image output with
Imagemagick with gambas
$ convert old.png -alpha off -threshold 50% new.png
Any sample code to achieve it?
Also using Image.Opacity and Image.Threshold, I get following errors
With Image.Opacity(50) I am getting error "The image must have an alpha
channel"
With Image.Threshold(0.5) the gambas crashed.
--
Regards
Safiur Rahman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230917/37d7958d/attachment.htm>
More information about the User
mailing list