All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.novelweb.video.edit.WatermarkLocation Maven / Gradle / Ivy

package cn.novelweb.video.edit;

import java.util.HashMap;
import java.util.Map;

/**
 * 

添加视频水印时设置水印位置

*

2020-02-26 00:19

* * @author Dai Yuanchuan **/ public enum WatermarkLocation { /** * 左上角 */ leftUp, /** * 右上角 */ rightUp, /** * 左下角 */ leftLower, /** * 右下角 */ rightLower, /** * 中间 */ middle; public static Map map = new HashMap<>(5); static { map.put(WatermarkLocation.leftUp, "overlay=10:10"); map.put(WatermarkLocation.rightUp, "overlay=main_w-overlay_w-10:10"); map.put(WatermarkLocation.leftLower, "overlay=10:main_h-overlay_h-10"); map.put(WatermarkLocation.rightLower, "overlay=main_w-overlay_w-10:main_h-overlay_h-10"); map.put(WatermarkLocation.middle, "overlay=main_w/2-overlay_w/2:main_h/2-overlay_h/2"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy