net.fckeditor.connector.Dispatcher类的
方法UploadResponse doPost(final HttpServletRequest request) {
logger.debug("Entering Dispatcher#doPost");
添加加水印的操作便可
if ("image".equals(type.getName().toLowerCase())) {
String tempName = fileName;
if (newName != null) {
tempName = newName;
}
String targetPath = PropertiesUtils.getCmsProperty("path");
ImageUtils.pressImage(targetPath
+ PropertiesUtils.getCmsProperty("waterMarker"),
targetPath
+ PropertiesUtils
.getCmsProperty("upload_file_path")
+ tempName, Integer
.parseInt(PropertiesUtils
.getCmsProperty("warterMarkerX")),
Integer.parseInt(PropertiesUtils
.getCmsProperty("warterMarkerY")));
}