#头像裁剪控件
支持圆形和方形预览,调用简单
控件参数说明
backgroundBoxColor1背景方格颜色1,两种颜色组成方背景效果,两个背景色使用相同颜色,成纯色背景交
backgroundBoxColor2 背景方格颜色2,两种颜色组成方背景效果,两个背景色使用相同颜色,成纯色背景交
backgroundBoxWidth背景方格大小
borderColor参考边框颜色
borderWidth参考边框宽度
clipHeight裁剪后的图片高度
clipWidth裁剪后的图片宽度
clipType参考边框类型 rounded_rect(方形),circle(圆形)
rectRadius方形参考边框的圆角弧度,参考边框类型 为rounded_rect时有效
控件类属性和方法说明
setmBoxColor2(int color) 设置背景方格颜色2,两种颜色组成方背景效果,两个背景色使用相同颜色,成纯色背景交
int getBoxColor2() 获得背景方格颜色2
setmBoxColor1(int color) 设置背景方格颜色1,两种颜色组成方背景效果,两个背景色使用相同颜色,成纯色背景交
int getBoxColor1() 获得背景方格颜色1
setmBoxWidth(int width) 设置背景方格大小
int getBoxWidth() 获得背景方格大小
setmClipHeight(int height) 设置裁剪后的图片高度
int getClipHeight() 获得裁剪后的图片高度
setmClipWidth(int widht) 设置裁剪后的图片宽度
int getClipWidth() 获得裁剪后的图片宽度
setmRectRoundRadius(int radius) 设置方形参考边框的圆角弧度,参考边框类型 为rounded_rect时有效
int getRectRoundRadius()获得方形参考边框的圆角弧度
setmBorderWidth(int width) 设置参考边框宽度
int getBorderWidth() 获得参考边框宽度
setmBorderColor(int color) 设置参考边框颜色
int getBorderColor() 获得参考边框颜色
setmType(int type) 设置参考边框类型,type取值 1(方形),0(圆形)
int getType() 获得参考边框类型 1(方形),0(圆形)
setImageBitmap(Bitmap bitmap) 设置源图片
Bitmap getClipImage()获得裁剪后的图片
QQ:182359041