蹒跚走路的程序猿

2013年8月25日

Android drawBitmapMesh扭曲图像

摘要: 今天介绍一下在Android当中怎么扭曲图像,在Android系统中的Canvas提供了一个drawBitmapMesh(Bitmapbitmap, int meshWidth, int meshHeight, float[] verts, int vertOffset, int[] colors, int colorOffset,Paintpaint)方法可以扭曲图像,该方法可以对bitmap进行扭曲。参数说明:bitmap:指定需要扭曲的源位图;meshWidth:该参数控制在横向上把该源位图划分成多少格;meshHeight:该参数控制在纵向上把该源位图划分成多少格;verts:该参数. 阅读全文

posted @ 2013-08-25 23:23 蹒跚走路的程序猿 阅读(1771) 评论(0) 推荐(0) 编辑

导航