Android:自定义ImageView展示大图中的指定区域并切圆角(雪碧图)
@Override
protected void onDraw(Canvas canvas)
{
Drawable drawable = getDrawable();
if (drawable instanceof BitmapDrawable)
{
Bitmap bitmap = ((BitmapDrawable) drawable).getBitmap()
原创
2017-04-15 15:53:32 ·
2326 阅读 ·
0 评论