⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 imageutil.java~7~

📁 云网论坛CWBBS 源码,内容丰富,学习,参考,教学的好资料,具体见内说明,
💻 JAVA~7~
字号:
package com.redmoon.forum;

import java.awt.*;

import cn.js.fan.util.file.image.*;
import cn.js.fan.web.*;
import com.redmoon.kit.util.*;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2005</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class ImageUtil {
    public ImageUtil() {
    }

    public void WaterMark(FileInfo fi) {
        WaterMarkUtil wmu = new WaterMarkUtil(WaterMarkUtil.POS_LEFT_TOP);
        // wmu.setOffsetX(150);
        // wmu.setOffsetY(0);
        wmu.mark(fi.getTmpFilePath(),
                  fi.getTmpFilePath(), realPath + "images/watermark.gif", 0.5f);
        Font font = new Font("隶书", Font.BOLD, 20);
        Color color = new Color(255, 0, 0);
        wmu.mark(fi.getTmpFilePath(), fi.getTmpFilePath(), Global.AppName, font,
                 color, 1f);
    }

    public void setRealPath(String realPath) {
        this.realPath = realPath;
    }

    public String getRealPath() {
        return realPath;
    }

    private String realPath;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -