im4Java,改变框架颜色?

时间:2012-07-09 16:13:11

标签: java imagemagick im4java

如何在ImageMagick 4 Java中更改帧颜色? 我有类似的东西,但框架一直都是白色......

IMOperation miop = new IMOperation();
miop.background("#000000");
miop.addImage(path+fileName);
miop.colorize(5,21,64);
miop.frame(2);

1 个答案:

答案 0 :(得分:1)

IMOperation miop = new IMOperation();    
miop.addImage(path+fileName);
miop.background("#000000");
miop.colorize(5,21,64);
miop.frame(2);
miop.addImage(newPath+fileName);

解。