日期:2014-05-20 浏览次数:20765 次
ConvertCmd cmd = new ConvertCmd();
IMOperation op = new IMOperation();
IMOperation sub_op1 = new IMOperation();
IMOperation sub_sub_op1 = new IMOperation();
IMOperation sub_sub_op2 = new IMOperation();
sub_op1.p_clone().alpha("extract").draw("fill black polygon 0,0 0,15 15,0 fill white circle 15,15 15,0");
sub_sub_op1.p_clone().flip();
sub_op1.addSubOperation(sub_sub_op1);
sub_op1.compose("multiply").composite();
sub_sub_op2.p_clone().flop();
sub_op1.addSubOperation(sub_sub_op2);
op.addSubOperation(sub_sub_op1);
op.alpha("off").compose("copyopacity").composite();
cmd.run(op, "bee.png", "new.png");