Search found 3 matches

by ospf
2018-03-28T20:19:01-07:00
Forum: Developers
Topic: How to achieve it by IM C API
Replies: 5
Views: 16343

Re: How to achieve it by IM C API

System:
linux IM: ImageMagick-7 API: magicwand by c

code:
PixelWand *fillColor = NewPixelWand();
PixelSetColor(fillColor, "rgba(0,0,0,1)");
PixelSetFuzz(fillColor, img.fuzzval);

DrawSetFillColor(drawImage, fillColor);
DrawAlpha(drawImage, 0, 0, FloodfillMethod);

MagickDrawImage(image ...
by ospf
2018-03-28T18:50:00-07:00
Forum: Developers
Topic: How to achieve it by IM C API
Replies: 5
Views: 16343

Re: How to achieve it by IM C API

thanks,What I mean is how to use an api to implement the function of a command and what functions to use. I tried but did not succeed, give some suggestions。
by ospf
2018-03-28T10:28:06-07:00
Forum: Developers
Topic: How to achieve it by IM C API
Replies: 5
Views: 16343

How to achieve it by IM C API

IM command:
convert test.png -alpha off \
-alpha set -fuzz 10% -fill none \
-draw "alpha 0,0 floodfill" \
-fill "rgba(255,255,255,1)" +opaque none \
-fill "rgba(0,0,0,1)" -opaque none \
-alpha off testDst.png



My question:
I'm a novice. How can I use IM C API on the above command, thanks.