GraphicsMagick+im4java

請好心的各位叔叔阿姨,兄弟姐妹們幫幫忙,解決一哈這個問題。java

紅色標註的gravity,有哪些gravity type?好比說center?還有哪些呢?最重要的要是是右下角用哪一個來表示呢?spa

package com.tzit.lhb2c.tool;cmd

import java.io.IOException;it

import org.im4java.core.CompositeCmd;
import org.im4java.core.IM4JavaException;
import org.im4java.core.IMOperation;io

public class test {class

 /**
  * @param args
  */
 public static void initLogoImg(String filePath,String toImg, String logoPath) throws IOException, InterruptedException, IM4JavaException{
  IMOperation op = new IMOperation();
  op.gravity("gravity");
//  op.dissolve(op);
  op.addImage(logoPath);
  op.addImage(filePath);
  op.addImage(toImg);
  CompositeCmd cmd=new CompositeCmd(true);
  cmd.run(op);
  test

}
 public static void main(String[] args) throws IOException, InterruptedException, IM4JavaException {
  // TODO Auto-generated method stub
  initLogoImg("c:\\10040072.jpg","c:\\1.jpg","d:\\logo.png");import

 }file

}
sso

相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息