Android在ImageView上做一些涂鸦
来源:互联网 发布:淘宝童装店铺起名 编辑:程序博客网 时间:2024/06/10 03:13
Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.nanana).copy(Bitmap.Config.ARGB_8888, true);Canvas canvas = new Canvas(bitmap);String text = "666";Rect rect = new Rect();Paint paint = new Paint();paint.setColor(Color.RED);paint.setTextSize(30);paint.getTextBounds(text, 0, text.length(), rect);canvas.drawText(text, (bitmap.getWidth() - rect.width())>>1, (bitmap.getHeight() + rect.height())>>1, paint);canvas.save();ImageView iv = (ImageView) findViewById(R.id.iv);iv.setImageBitmap(bitmap);
阅读全文
0 0
- Android在ImageView上做一些涂鸦
- 以Imageview为画布,在其上涂鸦
- android 实现在照片上涂鸦
- android:在照片上绘制涂鸦
- Android中在屏幕上涂鸦的例子
- Android中在屏幕上涂鸦的例子
- Android中在屏幕上涂鸦的例子
- android涂鸦程序(在图像上绘制)
- android 在图片上涂鸦(添加水印同理)
- Android中在屏幕上涂鸦的例子
- android如果给imageview做圆角,如果在原有的bitmap上加上一些修饰的drawable
- Android开发:在ImageView上绘制圆环
- imageview 缩放 涂鸦
- Unity实现在白板上绘画涂鸦
- Android学习笔记进阶之在图片上涂鸦(能清屏)
- Android学习笔记进阶之在图片上涂鸦(能清屏)
- Android学习笔记进阶之在图片上涂鸦(能清屏)
- Android学习笔记进阶之在图片上涂鸦(能清屏)
- 支付宝APP支付密钥配置
- 多线下,CountDownLatch,Future的使用
- LeetCode7——Reverse Integer(将一个整数反转,注意溢出的处理)
- 亚像素级精确度的角点
- 实现sleep-mysleep
- Android在ImageView上做一些涂鸦
- 动态代理和静态代理以及spring的aop
- selenium环境配置
- EJB学习笔记_8_SessionBean生命周期
- php缓冲区详解
- VBA创建excel工作薄
- youtube爬虫搭建
- [arm驱动]linux等待队列阻塞中断IO的应用
- 安卓简单图片处理程序