forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
691 B
22 lines
691 B
6 years ago
|
package com.fanruan.api.report;
|
||
6 years ago
|
|
||
|
import com.fr.stable.html.Tag;
|
||
|
import com.fr.stable.web.Repository;
|
||
|
import com.fr.web.BaseHTMLWriterUtils;
|
||
|
|
||
|
import java.awt.*;
|
||
|
|
||
|
public class BaseHTMLWriterKit {
|
||
|
|
||
|
/**
|
||
|
* 根据原始的图片和指定的尺寸以及报表上下文生成图片的HTML标签,该方法只生成一个简单的img标签
|
||
|
* @param image 原始图片
|
||
|
* @param dimension 指定尺寸
|
||
|
* @param repo 报表上下文
|
||
|
* @return img图片标签
|
||
|
*/
|
||
|
public static Tag createImageTag4RepoWithCheckVml(Image image, Dimension dimension, Repository repo){
|
||
|
return BaseHTMLWriterUtils.createImageTag4RepoWithCheckVml(image, dimension, repo);
|
||
|
}
|
||
|
}
|