private void setBitmapShaders(int index, Bitmap bitmap) {
if (bitmap != null && getBigRadius() > 0 && getSmallRadius() > 0) {
bigPicShaders.put(
index,
new BitmapShader(
getResizedBitmap(bitmap, getBigRadius() * 2, getBigRadius() * 2),
Shader.TileMode.CLAMP, Shader.TileMode.CLAMP));
smallPicShaders.put(
index,
new BitmapShader(
getResizedBitmap(bitmap, getSmallRadius() * 2, getSmallRadius() * 2),
Shader.TileMode.CLAMP, Shader.TileMode.CLAMP));
}
}
BubbleRank.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:bubble-rank
作者:
评论列表
文章目录