kangshifu
kangshifu
TextView textView = new TextView(getContext()); textView.setText("你好"); Drawable drawable = TBaseModuleApplication.getContext().getResources().getDrawable(R.drawable.water_mark_logo); textView.setCompoundDrawables(drawable,null,null,null); textView.setCompoundDrawablePadding(10); WatermarkText watermarkText = new WatermarkText(textView) .setPositionX(0.5) .setPositionY(0.5) .setTextColor(Color.WHITE) .setTextAlpha(98) .setRotation(-30) .setTextSize(14); Watermark waterMark = WatermarkBuilder.create(TBaseModuleApplication.getContext(), bitmap) .setTileMode(true) .loadWatermarkText(watermarkText)...
可以做成下载好的图片打水印保存到本地
我想设置下水印是文字加logo的支持吗,然后每个水印之间需要加上下左右的margin