AndroidWM icon indicating copy to clipboard operation
AndroidWM copied to clipboard

Allow user set align origin point for text/image, to make the watermark absulote centered

Open anyongjin opened this issue 2 years ago • 4 comments

In the implementation of the current version, the position of the watermark in the image is aligned with the upper left corner. it is very difficult If we waant to absolutely center the watermark in the background image. So I add the setOrigin method to allow setting the alignment origin of the watermark. When the watermark is printed on the background, it will be placed at the specified position according to the alignment origin. 在当前版本的实现中,水印在图片中的位置是按左上角对齐的,如果需要将水印在背景图片中绝对居中的话,是很难做到的。 所以我新增了setOrigin方法来允许设置水印的对齐原点。将水印防止到背景图片上时,会按对齐原点放置到指定位置上。

anyongjin avatar Feb 28 '22 14:02 anyongjin

@huangyz0918 This feature is a blocker for us to use this library.

Can you please review and merge the PR if possible?

arpanbag001 avatar Jun 10 '23 21:06 arpanbag001

感谢

agoodcoolman avatar Jul 25 '23 08:07 agoodcoolman