packagecom.example.ex_templete;importandroid.content.Context;importandroid.graphics.Canvas;importandroid.graphics.Color;importandroid.graphics.Paint;importandroid.graphics.Paint.Style;importandroid.util.AttributeSet;importandroid.util.DisplayMetrics;importa..
分类:
移动开发 时间:
2014-08-06 23:18:03
阅读次数:
481
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3781题意:在n*m矩阵的图定义连通区域为x值或y值相同且颜色相同的连通,连通具有传递性每次可以把一个连通区域颜色反转(O变X,X变O)问把所有块的颜色变为X最小的步数方法:很...
分类:
其他好文 时间:
2014-07-29 21:40:22
阅读次数:
358
/* 1.由Component.java源代码中可以看见其中的paint()方法体是空的,在Container中重写了该方法,其子类Window等也重写了该方法 2.由JComponent.java源代码中可以看见其中的paint()方法中调用paintComponent, paintChi...
分类:
编程语言 时间:
2014-07-28 15:00:23
阅读次数:
298
public class MyVolumnView extends View { int count_dark = 7; final int MAX_COUNT = 15; Paint paint; Bitmap dark; Bitmap light; final...
分类:
其他好文 时间:
2014-07-27 23:20:29
阅读次数:
261
先来看效果:
实现方式----->自定义控件
核心代码:
package com.example.wavedemo1;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
i...
分类:
移动开发 时间:
2014-07-26 15:08:20
阅读次数:
311
Painting Storages
Time Limit: 2 Seconds Memory Limit: 65536 KB
There is a straight highway with N storages alongside it labeled by 1,2,3,...,N. Bob asks you to paint all storages with two...
分类:
其他好文 时间:
2014-07-26 02:48:17
阅读次数:
178
项目右键属性——资源——添加资源展开——添加现有文件paint方法中: private void Form1_Paint(object sender, PaintEventArgs e) { using (Graphics g = e.Graphics) ...
1.图形图像 1.1打开图像文件 1 private void Form1_Paint(object sender, PaintEventArgs e)2 {3 string file = "sleep.jpg";4 Bitmap ...
分类:
其他好文 时间:
2014-07-23 12:51:06
阅读次数:
198
相信word中的 艺术字 功能大家都不陌生。今天, 我们就利用C#来制作几款自己的艺术字, 可能会对我们了解字体图像的制作原理有一些帮助. 至于有没有使用价值我保持沉默.一. 投影效果程序运行效果截图:程序代码实现如下:投影效果代码private void Form1_Paint(object se...
分类:
Web程序 时间:
2014-07-21 23:30:40
阅读次数:
362
Canvas,Paint1.在android 绘图但中经常要用到Canvas和Paint类,Canvas好比是一张画布,上面已经有你想绘制图画的轮廓了,而Paint就好比是画笔,就要给Canvas进行添色等操作。这两个类通常都是在onDraw(Canvas canvas)方法中用的。2.Bitmap...
分类:
移动开发 时间:
2014-07-20 08:01:57
阅读次数:
645