码迷,mamicode.com
首页 >  
搜索关键字:paint    ( 1183个结果
hdu 3980 Paint Chain sg函数
题目链接给一个长度为n的环, 两个人轮流涂色, 每次涂m个连续的, 无法继续涂了就输。 1 #include 2 using namespace std; 3 #define pb(x) push_back(x) 4 #define ll long long 5 #define mk(x, y) m...
分类:其他好文   时间:2015-12-16 21:20:03    阅读次数:171
函数的简单调用
1 #include 2 #include 3 #include 4 int Move(); 5 int Bulid(); 6 int Paint(); 7 int main () 8 { 9 Move();10 Bulid();11 Paint();12 13 ...
分类:其他好文   时间:2015-12-16 09:25:30    阅读次数:160
获取Graphics对象的方法
在做自定义控件时或者GDI+的时候经常会遇到获取Graphics实例的问题。一般有三种获取方式1、从Paint事件的参数中获取。窗体和许多控件都有一个Paint事件,有一个PaintEventArgs类型的参数eprivatevoidForm1_Paint(objectsender,System.W...
分类:其他好文   时间:2015-12-14 12:12:43    阅读次数:183
循环滚动TextView
import android.content.Context;import android.graphics.Canvas;import android.graphics.Paint;import android.util.AttributeSet;import android.util.Log;i...
分类:其他好文   时间:2015-12-10 13:24:41    阅读次数:224
字体描边 终极版
package com.joyodream.common.view;import android.content.Context;import android.graphics.Canvas;import android.graphics.Paint.Style;import android.tex...
分类:其他好文   时间:2015-12-08 16:02:04    阅读次数:112
256. Paint House
题目:There are a row ofnhouses, each house can be painted with one of the three colors: red, blue or green. The cost of painting each house with a certa...
分类:其他好文   时间:2015-12-03 07:12:06    阅读次数:127
[LeetCode]Paint House II
public class Solution { public int minCostII(int[][] costs) { int n = costs.length; if (n == 0) { return 0; } ...
分类:其他好文   时间:2015-12-01 08:26:19    阅读次数:112
[css]我要用css画幅画(五)
接着之前的[css]我要用css画幅画(四), 这次我给小明和静静增加了对话,用了简单的动画效果。github:https://github.com/bee0060/Css-Paint, 完整代码在pages/sun-house-4.html和相关的css中可以找到demo:http://bee00...
分类:Web程序   时间:2015-11-27 17:31:16    阅读次数:282
自定义控件学习
1,继承自view,实现ondraw方法: 初始化画笔,TextPaint paint,并设置画笔属性: paint.setFlags(Paint.ANTI_ALIAS_FLAG):画笔抗锯齿。 paint.setStyle(Paint.Style.STROKE):设置画笔...
分类:其他好文   时间:2015-11-27 00:45:36    阅读次数:202
详解Paint的setMaskFilter(MaskFilter maskfilter)
一、setMaskFilter(MaskFilter maskfilter)setMaskFilter(MaskFilter maskfilter)是paint中的方法,它可以用来对图像进行一定的处理。这个方法需要传入一个MaskFilter对象。但MaskFilter类中没有任何实现方法,所以我们...
分类:其他好文   时间:2015-11-24 14:24:48    阅读次数:140
1183条   上一页 1 ... 68 69 70 71 72 ... 119 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!