画完一个图后保存canvas状态→save()保存使处安全状态,不影响别人,也不被他人影响。
接着画完别的图形后恢复canvas状态→restore()释放出原来安全区域的图形养成好习惯。
分类:
Web程序 时间:
2014-05-01 10:45:25
阅读次数:
353
Intellectual blocks result in an inefficient
choice of mental tactics or a shortage of intellectual ammunition.Expressive
blocks inhibit your vital ab...
分类:
其他好文 时间:
2014-05-01 08:26:33
阅读次数:
317
1. 查看内核版本命令: 1) [root@q1test01 ~]# cat
/proc/version Linux version 2.6.9-22.ELsmp (bhcompile@crowe.devel.redhat.com)
(gcc version 3.4.4 20050721 (Red ...
分类:
系统相关 时间:
2014-05-01 07:15:14
阅读次数:
575
Designing Your App’s ProductsAproductis
something you want to sell in your app’s store. You create and configure
products in iTunes Connect, and your ...
分类:
移动开发 时间:
2014-05-01 06:25:43
阅读次数:
655
题意:动物园有n只猫和m条狗,现在有p个小孩,他们有的喜欢猫,有的喜欢狗,其中喜欢猫的一定不喜欢狗,喜欢狗的一定不喜欢猫。现在管理员要从动物园中移除一些动物,如果一个小孩喜欢的动物留了下来而不喜欢的动物被移走,这个小孩会很高兴。现在问最多可以让多少个小孩高兴。此题是求二分图最大独立集。二分图比较明显...
分类:
其他好文 时间:
2014-05-01 02:55:22
阅读次数:
470
I am honored to be with you today at your commencement from one of the finest universities in the world. I never graduated from college. Truth be told, this is the closest I've ever gotten to a colleg...
分类:
其他好文 时间:
2014-04-29 13:46:22
阅读次数:
337
# To enable ProGuard in your project, edit project.properties
# to define the proguard.config property as described in that file.
#
# Add project specific ProGuard rules here.
# By default, the flags ...
分类:
其他好文 时间:
2014-04-29 13:24:23
阅读次数:
443
本系列主要参考《Unity Shaders and Effects Cookbook》一书(感谢原书作者),同时会加上一点个人理解或拓展。
这里是本书所有的插图。这里是本书所需的代码和资源(当然你也可以从官网下载)。
========================================== 分割线 ==================================...
分类:
其他好文 时间:
2014-04-29 13:17:21
阅读次数:
376
Problem Description
Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N!
Input
One N in one line, process to the end of file.
Output
For each N, output N! i...
分类:
其他好文 时间:
2014-04-28 10:36:41
阅读次数:
341
Annotations are one of the fundamental language changes
introduced in Java SE5. They provide information that you need to fully describe your program, but that cannot be expressed in Java. Thus, anno...
分类:
编程语言 时间:
2014-04-27 21:14:59
阅读次数:
431