1.理解painter是个过程接受frame参数,即在frame中画painter 2.frame-coord-map 中将一个单位正方形中的点映射到一个新框架中 3.transform-painter 则是将painter映射到一个新框架中返回的也是一个过程,也可以理解为返回一个painter ...
分类:
其他好文 时间:
2017-02-22 22:34:52
阅读次数:
281
1 #lang sicp 2 3 (#%require sicp-pict) 4 5 (define (make-vect a b) 6 (cons a b)) 7 8 (define (xcor-vect v) 9 (car v)) 10 11 (define (ycor-vect v) 12 (... ...
分类:
其他好文 时间:
2017-02-22 00:10:15
阅读次数:
232
// 画笔类型 int Penstyle[] = { PS_SOLID, /* 直线 */ PS_DASH, /* ------- */ PS_DOT, /* ....... */ PS_DASHDOT, /* _._._._ */ PS_DA... ...
分类:
其他好文 时间:
2017-02-16 22:17:13
阅读次数:
170
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 ...
分类:
其他好文 时间:
2017-02-12 19:03:35
阅读次数:
188
现在,C#创建不规则窗体不是一件难事,下面总结一下: 一、自定义窗体 一般为规则的图形,如圆、椭圆等。 做法:重写Form1_Paint事件(Form1是窗体的名字),最简单的一种情况如下: System.Drawing.Drawing2D.GraphicsPath shape = new Syst ...
对于Paint没有很好的深入的学习过,在工作之余再巩固巩固。 1.Paint的BlurMaskFilter(模糊效果) 自定义一个View继承View 重写里面的onDraw方法。这里直接上代码了: ...
分类:
其他好文 时间:
2017-02-09 11:12:03
阅读次数:
182
转自 http://www.cnblogs.com/lidabo/archive/2012/07/10/2584725.html 可以用GetSystemMetrics函数可以获取系统分辨率,但这只是其功能之一,GetSystemMetrics函数只有一个参数,称之为「索引」,这个索引有75个标识符 ...
分类:
其他好文 时间:
2017-02-04 18:19:10
阅读次数:
142
There are a row of n houses, each house can be painted with one of the k colors. The cost of painting each house with a certain color is different. Yo ...
分类:
其他好文 时间:
2017-01-30 10:39:56
阅读次数:
179
private void Form1_Paint(object sender, PaintEventArgs e){ Text = e.ClipRectangle.Width.ToString();} 在窗体的Paint事件中,有一个ClipRectangle的属性,解释为“获取要在其中进行绘画的矩 ...
一、学习背景 现在我们要学的是Windows32的编程,与DOS不同的是,实现的目标是一个具有你所需要的功能的“窗口”。这个“窗口”时时刻刻都在与操作系统之间,通过一个称之为“消息队列”的东西传送数据。因此处理好各种消息便成了Win32编程的核心。 SDK编程是相对于MFC来说的,也就是用C和C++ ...
分类:
编程语言 时间:
2017-01-19 21:15:35
阅读次数:
279