码迷,mamicode.com
首页 >  
搜索关键字:slimming paint    ( 1185个结果
自定义View时,用到Paint Canvas的一些温故,讲讲用路径绘画实现动画效果(基础篇 三)
转载请注明出处王亟亟的大牛之路上礼拜上了一篇关于动画的自定义View的文章,然后里面的实现是PathMeasure,然后这一部分貌似以前没有讲过,那么就再补一篇来介绍下这部分的知识(之前一篇的传送门:http://blog.csdn.net/ddwhan0123/article/details/51066859)直接说有点抽象,我们来看下演示的效果:动的时候,是这样子那暂停是这样子其实这样的实现,一...
分类:其他好文   时间:2016-04-11 16:59:54    阅读次数:264
Android开发 详解开源项目CircleImageView
之前的项目中在需要显示圆形头像的地方,使用到了Github上的优秀开源项目CircleImageViewhttps://github.com/hdodenhof/CircleImageView今天仔细地研究了这个项目,学习其原理,收获不少。 源码主要分为下面这几大部分取图片Bitmap取自定义属性创建Paint画笔计算内外圆半径Canvas绘制内外圆形一.取图片BitmapCircleImageV...
分类:移动开发   时间:2016-04-11 01:53:38    阅读次数:606
[poj 1691] Painting A Board dfs+拓扑排序
Painting A Board Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 3611 Accepted: 1795Description The CE digital company has built an Automatic Painting Machine (APM) to paint a fl...
分类:编程语言   时间:2016-04-08 09:05:58    阅读次数:176
lintcode-easy-Paint Fence
There is a fence with n posts, each post can be painted with one of the kcolors.You have to paint all the posts such that no more than two adjacent fe ...
分类:其他好文   时间:2016-04-07 08:17:43    阅读次数:110
Android 用Canvas画textview、bitmap、矩形(裁剪)、椭圆、线、点、弧
初始化对象private Paint mPaint;//画笔 private int count;//点击次数 private Rect rect;//矩形 public CounstomView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); //初始化画笔...
分类:移动开发   时间:2016-04-05 17:53:50    阅读次数:470
lintcode-medium-Paint House
There are a row of n houses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certai ...
分类:其他好文   时间:2016-04-03 14:30:51    阅读次数:149
1 跟随手指移动的球
1 package ui; 2 3 import android.content.Context; 4 import android.graphics.Canvas; 5 import android.graphics.Color; 6 import android.graphics.Paint; ...
分类:移动开发   时间:2016-04-03 08:51:43    阅读次数:180
窗体的Alpha通道透明色支持(一旦 Form 被定义为利用 LayeredWindow ,窗口的绘图不再响应沿用多年的 WM_Paint 消息)
参考: http://www.delphibbs.com/delphibbs/dispq.asp?lid=2190768 Windows 2000后,为了支持类似MAC界面的Alpha通道混合效果,提供了GDI+,提供了很多的界面功能函数,可以实现很好的界面效果。例如可以使用UpdateLayere ...
分类:Windows程序   时间:2016-04-03 07:20:03    阅读次数:727
图片各种旋转、改变大小
1、各种旋转、改变大小 注意:先要添加画图相关的 using 引用。 // 向右旋转图像 90 °代码如下 : private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) { Graphics g =  ...
分类:其他好文   时间:2016-03-29 14:35:56    阅读次数:185
android 五子棋开发
新人开发五子棋,两天完成基本功能,本小白的思路。 思路: 1.用canvas绘制棋盘:得到手机的分辨率。棋盘大小为19*19。将手机宽屏分为21份,取中间19份为棋盘。上下空白位置为按钮功能。 如下:画出棋盘。 1 protected void onDraw(Canvas canvas,Paint ...
分类:移动开发   时间:2016-03-29 12:35:36    阅读次数:298
1185条   上一页 1 ... 62 63 64 65 66 ... 119 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!