提交 e5eb6bd8 编写于 作者: W wizardforcel

2020-06-22 09:37:21

上级 59795349
......@@ -490,7 +490,7 @@ namespace WebApp.Controllers {
![Displaying message](img/9bac5b975555b7a500839c1dc69744fe.jpg)
Figure: Displaying message
图:显示消息
在本教程中,我们介绍了 ASP.NET Core 框架。 我们已经创建了两个简单的 ASP.NET Core 应用。
......
......@@ -167,7 +167,7 @@ $ ./commandargs.exe 1 2 3
![Command line arguments](img/7259f2cdcfed249061d27e1ae646af71.jpg)
Figure: Command line arguments
图:命令行参数
```vb
Option Strict On
......
......@@ -227,7 +227,7 @@ Imports MyMath
![Root namespace](img/54709daa172f9dcab726144a394eefb1.jpg)
Figure: Root namespace
图:根命名空间
在 Visual Basic 2008 Express 版上,会自动创建一个根名称空间。 可以在项目属性的“应用”选项卡下找到。 删除根名称空间或将其包含在导入路径中。 例如,如果在那里有“测试”,则将行更改为`Imports Testing.MyMath`
......
......@@ -1010,6 +1010,6 @@ public class Sokoban extends JFrame {
![Sokoban](img/663c9c36bdca1d29742969fa836cccf1.jpg)
Figure: Sokoban
图:推箱子
这是推箱子游戏。
\ No newline at end of file
......@@ -417,7 +417,7 @@ g2d.dispose();
![Basic strokes](img/7ee7237dde8ed287cda6bcc3266db319.jpg)
Figure: Basic strokes
图:基本笔划
## 端帽
......@@ -542,7 +542,7 @@ g2d.drawLine(254, 20, 254, 140);
![Caps](img/6af912c7531515b46c7c974c8ba70c78.jpg)
Figure: Caps
图:端帽
## 连接
......
......@@ -334,7 +334,7 @@ g2d.drawImage(buffImg, 20, 20, null);
![Sun & cloud](img/0c78f10a2c00c36ab30b076f19ce4e82.jpg)
Figure: Sun & cloud
图:太阳和云
## 聚光灯
......
......@@ -394,6 +394,6 @@ g2d.setClip(oldClip);
![Clipping shapes](img/25f4908640340038862ad597c70a482b.jpg)
Figure: Clipping shapes
图:剪裁形状
在 Java 2D 教程的这一部分中,我们讨论了剪辑。
\ No newline at end of file
......@@ -314,7 +314,7 @@ public void actionPerformed(ActionEvent e) {
![Bubbles](img/2ae80934ec197156e762ce77fd2dce74.jpg)
Figure: Bubbles
图:泡泡
## 星星
......
......@@ -813,6 +813,6 @@ public Dimension getPreferredSize() {
![Reflection](img/853d897bad6799d042176a58842087b9.jpg)
Figure: Reflection
图:反射
在 Java2D 教程的这一部分中,我们处理了图像。
\ No newline at end of file
......@@ -541,7 +541,7 @@ textLayout.draw(g2d, x, y);
![Shadow Text](img/d71d4b71b8e097b0293e956dd2dcf909.jpg)
Figure: Shadowed text
图:阴影文字
## 文字属性
......@@ -663,7 +663,7 @@ g2d.drawString(as1.getIterator(), 15, 60);
![Text Attributes](img/f21c2de2cb5c2371b8be8da3c0d3583b.jpg)
Figure: Text Attributes
图:文本属性
## 旋转文字
......@@ -828,6 +828,6 @@ g2d.fill(transformedGlyph);
![Rotated text](img/39eb5491ec5fc81b8cd0ea8cdb62de6a.jpg)
Figure: Rotated text
图:旋转文本
在 Java 2D 教程的这一部分中,我们介绍了文本和字体。
\ No newline at end of file
......@@ -265,7 +265,7 @@ public void run() {
![Hit testing](img/1bdebba40497aed8739b6882b669a1d3.jpg)
Figure: Hit testing
图:点击测试
## 移动和缩放
......@@ -840,6 +840,6 @@ public void mouseDragged(MouseEvent event) {
![Resize Rectangle](img/fd5b0168e8cb1332c6ae95a036c786c7.jpg)
Figure: Resizing a rectangle
图:缩放矩形
在 Java 2D 教程的这一部分中,我们介绍了命中测试和移动对象。
\ No newline at end of file
......@@ -153,7 +153,7 @@ cairo_show_page(cr);
![PDF file in Evince](img/2e5ba18a54c42bb745eb2a0e0c7bdfe7.jpg)
Figure: PDF file in Evince
图:Evince 中的 PDF 文件
## SVG 文件
......@@ -325,6 +325,6 @@ g_signal_connect(G_OBJECT(darea), "draw",
![GTK window](img/871e727211f766ac4ba4b117c3511353.jpg)
Figure: GTK window
图:GTK 窗口
在本章中,我们介绍了受支持的 Cairo 后端。
\ No newline at end of file
......@@ -271,7 +271,7 @@ cairo_fill(cr);
![Fill and stroke](img/2e94000cc07cde2110fb1c6a38c79915.jpg)
Figure: Fill and stroke
图:填充和笔划
## 笔划线
......@@ -351,7 +351,7 @@ cairo_stroke(cr);
![Dashes](img/06fd96a442917133a8dd22758258b132.jpg)
Figure: Dashes
图:虚线
## 线帽
......@@ -365,7 +365,7 @@ Cairo 有三种不同的线帽样式。
![Line caps](img/9be57fb69546adb7647b0477bb6416e5.jpg)
Figure: Square, round and butt caps
图:正方形,圆和端帽
带有`CAIRO_LINE_CAP_SQUARE`上限的行的大小将不同于带有`CAIRO_LINE_CAP_BUTT`上限的行。 如果一条线的宽度为 px 宽,则带有`CAIRO_LINE_CAP_SQUARE`上限的线的宽度将恰好为 px 宽度。 开头为`width / 2`像素,结尾为`width / 2`像素。
......@@ -438,19 +438,19 @@ cairo_stroke(cr);
![Line caps](img/0f41d255684e193f40af23db81b627db.jpg)
Figure: Line caps
图:线帽
## 线连接
可以使用三种不同的连接样式来连接线:
* CAIRO_LINE_JOIN_BEVEL
* CAIRO_LINE_JOIN_ROUND
* CAIRO_LINE_JOIN_MITER
* `CAIRO_LINE_JOIN_BEVEL`
* `CAIRO_LINE_JOIN_ROUND`
* `CAIRO_LINE_JOIN_MITER`
![Bevel, Round, Miter line joins](img/81d90d1c979928b5a75f62ca935115a4.jpg)
Figure: Bevel, Round, Miter line joins
图:斜角,圆角,斜接线连接
`CAIRO_LINE_JOIN_BEVEL`使用切除连接,其中切除距离接合点的线宽一半。 `CAIRO_LINE_JOIN_ROUND`使用圆形连接,其中圆心是连接点。 `CAIRO_LINE_JOIN_MITER`使用了一个尖角。
......@@ -491,6 +491,6 @@ cairo_stroke(cr);
![Line joins](img/f6d9a35c05f398c3a210cb25e78ece73.jpg)
Figure: Line joins
图:直线连接
在本章中,我们做了一些基本绘图。
\ No newline at end of file
......@@ -183,7 +183,7 @@ cairo_curve_to(cr, 440, 155, 380, 145, 380, 40);
![Other shapes](img/55a7bbccd49ad62202eaafeba3c7118b.jpg)
Figure: Other shapes
图:其它形状
## 填充
......@@ -228,7 +228,7 @@ cairo_fill(cr);
![Solid colours](img/b81eacf2aa3e4306048f6d46ff0b12e8.jpg)
Figure: Solid colours
图:纯色
### 图案
......
......@@ -141,7 +141,7 @@ cairo_pattern_add_color_stop_rgb(pat3, 0.9, 0, 0, 0);
![Linear gradients](img/37da590e5378a3fe7509b388880fd7b8.jpg)
Figure: Linear gradients
图:线性渐变
## 径向渐变
......@@ -255,6 +255,6 @@ cairo_fill(cr);
![Radial gradients](img/032bef3d4b830cd247eef8b780dd6937.jpg)
Figure: Radial gradients
图:径向渐变
在 Cairo 图形教程的这一章中,我们介绍了渐变。
\ No newline at end of file
......@@ -30,7 +30,7 @@ static void do_drawing(cairo_t *cr)
![Transparency](img/d58352b2d23bbf19f17a39b87d3b1210.jpg)
Figure: Transparency
图:透明度
## 泡芙效果
......@@ -251,7 +251,7 @@ g_timeout_add(14, (GSourceFunc) time_handler, (gpointer) window);
![Puff effect](img/71761eb2244ab829b31b7e3743785cea.jpg)
Figure: Puff effect
图:粉扑效果
## 等待演示
......
......@@ -157,7 +157,7 @@ cr.show_page()
![PDF file in Evince](img/abf34842bb66cdad171b90300cf12f1d.jpg)
Figure: PDF file in Evince
图:Evince 中的 PDF 文件
## SVG 文件
......@@ -316,6 +316,6 @@ def on_draw(self, wid, cr):
![GTK window](img/e8b8b23f03b93e4a7c2496a66657e06f.jpg)
Figure: GTK window
图:GTK 窗口
在本章中,我们介绍了受支持的 PyCairo 后端。
\ No newline at end of file
......@@ -353,7 +353,7 @@ Cairo 有三种不同的线帽样式。
![Line caps](img/1edbb6b406091744fe8a143f6b60f3b3.jpg)
Figure: Square, round and butt caps
图:正方形,圆和端帽
带有`cairo.LINE_CAP_SQUARE`帽的线的大小与带有`cairo.LINE_CAP_BUTT`帽的线的大小不同。 如果一行的宽度是 x 单位,则带`cairo.LINE_CAP_SQUARE`上限的行的大小将恰好是 x 单位; 开头`x / 2`个单位,结尾`x / 2`个单位。
......@@ -426,7 +426,7 @@ cr.stroke()
![Line caps](img/1edbb6b406091744fe8a143f6b60f3b3.jpg)
Figure: Line caps
图:直线的端帽
## 线连接
......@@ -438,7 +438,7 @@ Figure: Line caps
![Bevel, Round, Miter line joins](img/882bb007d5a21034cead409243ffe34d.jpg)
Figure: Bevel, Round, Miter line joins
图:斜角,圆角,斜接线连接
```py
def on_draw(self, wid, cr):
......@@ -479,7 +479,7 @@ cr.stroke()
![Line joins](img/397c2a5d95b534041ad50759dd993da4.jpg)
Figure: Line joins
图:直线连接
## 贝塞尔曲线
......
......@@ -131,7 +131,7 @@ lg3.add_color_stop_rgba(0.9, 0, 0, 0, 1)
![Linear gradients](img/6fdf5fa7539de598190b993331a169d9.jpg)
Figure: Linear gradients
图:线性渐变
## 径向渐变
......@@ -242,6 +242,6 @@ cr.fill()
![Radial gradients](img/032bef3d4b830cd247eef8b780dd6937.jpg)
Figure: Radial gradients
图:径向渐变
在本章中,我们介绍了 PyCairo 渐变。
\ No newline at end of file
......@@ -221,7 +221,7 @@ cr.paint_with_alpha(self.alpha)
![Puff effect](img/6494f55b272a96349c1aa2543effb3c4.jpg)
Figure: Puff effect
图:粉扑效果
## 反射图像
......
......@@ -325,7 +325,7 @@ public class MovingSpriteEx extends JFrame {
![Moving sprite](img/5668ee3be671feaf0b7fc094eab5098a.jpg)
Figure: Moving sprite
图:移动精灵
## 射击导弹
......@@ -778,6 +778,6 @@ public class ShootingMissilesEx extends JFrame {
![Shooting missiles](img/18c4a40e9287a3753b29e323555effe9.jpg)
Figure: Shooting missiles
图:发射导弹
在本章中,我们介绍了精灵。
\ No newline at end of file
......@@ -308,7 +308,7 @@ ctx.lineCap = 'square';
![Line caps](img/6eda0cdb333f2bb3dbaa46ef3d3f8b80.jpg)
Figure: Line caps
图:直线的端帽
垂直线强调线的大小差异。
......
......@@ -783,6 +783,6 @@ public class CollisionEx extends JFrame {
![Shooting aliens](img/63963f143c0334a096538fa962ff3cc1.jpg)
Figure: Shooting aliens
图:射击外星人
本章是关于碰撞检测的。
\ No newline at end of file
......@@ -512,6 +512,6 @@ private void checkSolution() {
![Puzzle](img/4583e0b3f62423af98dbb001a0d5d654.jpg)
Figure: Forming the image
图:创建图像
这是用 Java 创建的益智游戏。
\ No newline at end of file
......@@ -787,7 +787,7 @@ Polygon(hdc, points2, 5);
![Line joins](img/3ddafc423589710a14264ebc237f2e31.jpg)
Figure: Line joins
图:直线连接
## 笔刷
......
......@@ -532,7 +532,7 @@ cr.ResetClip();
![Reflection](img/4340eb394adacbc4b1558235ea273f2b.jpg)
Figure: Reflection
图:反射
## 等待
......
......@@ -506,7 +506,7 @@ cr.restore()
![Reflection](img/dabef42d06cd133ae3224c8c3df3ac06.jpg)
Figure: Reflection
图:反射
## 等待
......
......@@ -880,7 +880,7 @@ int main(int argc, char *argv[]) {
![Linear gradients](img/8ca8188e82a24482ffca57e7cbc8e315.jpg)
Figure: Linear gradients
图:线性渐变
## 径向渐变
......
......@@ -185,7 +185,7 @@ text.setEffect(ref);
![Reflection](img/3c92934f8b01eb91a1e3c6f01a44bfe4.jpg)
Figure: Reflection
图:反射
## 灯光
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册