huangyz0918 / AndroidWM

An android image watermark library that supports steganography.
http://huangyz.name/AndroidWM/
Apache License 2.0
1.59k stars 202 forks source link

小米的10.2系统生成水印后都会自动横向压缩显示 #26

Open sdgSnow opened 5 years ago

sdgSnow commented 5 years ago

生成水印后,图片就逆时针旋转了90度,导致展示的时候竖着拍的图片都是横向压缩显示了

huangyz0918 commented 5 years ago

Thanks for your feedback @sdgSnow , can you offer more detailed steps to reproduce this issue?

sdgSnow commented 5 years ago

//水印图片 List watermarkTexts = new ArrayList<>(); //拍摄时间水印 WatermarkText watermarkText1 = new WatermarkText(takePhotoCurrentTime) .setTextColor(Color.WHITE) .setPositionX(0.05) .setPositionY(0.1) .setTextAlpha(255) .setTextSize(12) .setTextShadow(0.1f, 1, 1, Color.GRAY); watermarkTexts.add(watermarkText1); Bitmap bitmap2 = WatermarkBuilder.create(mContext, bitmap) .loadWatermarkTexts(watermarkTexts) .getWatermark() .getOutputImage(); 这是我添加水印的代码

toxjw2013 commented 4 years ago

@sdgSnow 你的问题解决了吗?怎么解决的能说下吗?谢谢