Sign in Join
Wiki copytemporary

BGRABitmap AggPas: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
1-Here is a series of projects demonstrating advanced capabilities in [[BGRABitmap]] similar to [AggPas](http://www.crossgl.com/aggpas/)
1+Here is a series of projects demonstrating advanced capabilities in [[BGRABitmap]] similar to [AggPas](<http://www.crossgl.com/aggpas/>)
22
3-The projects are in the <b>bgraaggtest</b> folder in [BGRABitmap repository](https://github.com/bgrabitmap/bgrabitmap/tree/master/test/bgraaggtest)
3+The projects are in the **bgraaggtest** folder in [BGRABitmap repository](<https://github.com/bgrabitmap/bgrabitmap/tree/master/test/bgraaggtest>)
44
5+## Contents
6+
7+ * 1 Antialiasing demo (AA demo)
8+ * 2 Alpha gradient
9+ * 3 Blur
10+ * 4 Bézier like splines (B-spline)
11+ * 5 Distortions
12+ * 6 Gouraud shading
13+ * 7 Image filters 2
14+ * 8 Image perspective
15+
516### Antialiasing demo (AA demo)
617
7-This program shows how the gamma factor affects how antialiasing is rendered.
18+This program shows how the gamma factor affects how antialiasing is rendered.
819
9-<figure>
10-<img src="aa_demo.png" title="aa_demo.png" width="400" />
11-<figcaption>aa_demo.png</figcaption>
12-</figure>
20+[![aa demo.png](/wiki-images/6/69/aa_demo.png)](</File:aa_demo.png>)
1321
1422### Alpha gradient
1523
16-This program shows how to apply a complex alpha mask based on a custom gradient. See [[BGRABitmap tutorial 11|Tutorial 11]] on how to create a custom scanner.
24+This program shows how to apply a complex alpha mask based on a custom gradient. See [[BGRABitmap tutorial 11|Tutorial 11]] on how to create a custom scanner.
1725
18-<figure>
19-<img src="alpha_gradient.png" title="alpha_gradient.png" width="400" />
20-<figcaption>alpha_gradient.png</figcaption>
21-</figure>
26+[![alpha gradient.png](/wiki-images/e/e2/alpha_gradient.png)](</File:alpha_gradient.png>)
2227
2328### Blur
2429
25-This program shows the different types of blurs and their speed.
30+This program shows the different types of blurs and their speed.
2631
27-<figure>
28-<img src="blur.png" title="blur.png" width="400" />
29-<figcaption>blur.png</figcaption>
30-</figure>
32+[![blur.png](/wiki-images/7/72/blur.png)](</File:blur.png>)
3133
3234### Bézier like splines (B-spline)
3335
34-This program to demonstrate various kind of spline interpolations and how to use a path cursor.
36+This program to demonstrate various kind of spline interpolations and how to use a path cursor.
3537
36-<figure>
37-<img src="bspline.png" title="bspline.png" width="400" />
38-<figcaption>bspline.png</figcaption>
39-</figure>
38+[![bspline.png](/wiki-images/2/28/bspline.png)](</File:bspline.png>)
4039
41-The TBGRAPath objet takes a series of instructions to draw a path in a similar way as with HTML canvas. To define a polygon, you can call `moveTo(x,y)` to define the first point, and then `lineTo(x,y)` for each subsequent point. Finally you can call `closePath` to end the polygon.
40+The TBGRAPath objet takes a series of instructions to draw a path in a similar way as with HTML canvas. To define a polygon, you can call `moveTo(x,y)` to define the first point, and then `lineTo(x,y)` for each subsequent point. Finally you can call `closePath` to end the polygon.
4241
43-Once the path is created, you can draw it and fill it, either using its `stroke` and `fill` functions, or by calling `TBGRABitmap.DrawPath` or `FillPath` functions.
42+Once the path is created, you can draw it and fill it, either using its `stroke` and `fill` functions, or by calling `TBGRABitmap.DrawPath` or `FillPath` functions.
4443
45-Do draw a symbol along the path, you can use `TBGRAPath.CreateCursor` function to create a cursor. The cursor has `MoveForward` and `MoveBackward` for example to move along the path. They return the actual moved length, which will be 0 when the end of the path has been reached.
44+Do draw a symbol along the path, you can use `TBGRAPath.CreateCursor` function to create a cursor. The cursor has `MoveForward` and `MoveBackward` for example to move along the path. They return the actual moved length, which will be 0 when the end of the path has been reached.
4645
47-The `CurrentCoordinate` property contains the current position and the `CurrentTangent` contains a unit vector to align the shape.
46+The `CurrentCoordinate` property contains the current position and the `CurrentTangent` contains a unit vector to align the shape.
4847
4948### Distortions
5049
51-This program shows how to apply a distortion to an image or a gradient.
50+This program shows how to apply a distortion to an image or a gradient.
5251
53-<figure>
54-<img src="distortions.png" title="distortions.png" width="400" />
55-<figcaption>distortions.png</figcaption>
56-</figure>
52+[![distortions.png](/wiki-images/b/ba/distortions.png)](</File:distortions.png>)
5753
5854### Gouraud shading
5955
60-This program demonstrates how to do a multi-polygon Gouraud shading.
56+This program demonstrates how to do a multi-polygon Gouraud shading.
6157
62-<figure>
63-<img src="gouraud.png" title="gouraud.png" width="400" />
64-<figcaption>gouraud.png</figcaption>
65-</figure>
58+[![gouraud.png](/wiki-images/5/56/gouraud.png)](</File:gouraud.png>)
6659
6760### Image filters 2
6861
69-This program shows the various interpolation filters that can be used when resampling.
62+This program shows the various interpolation filters that can be used when resampling.
7063
71-<figure>
72-<img src="image_filters2.png" title="image_filters2.png" width="400" />
73-<figcaption>image_filters2.png</figcaption>
74-</figure>
64+[![image filters2.png](/wiki-images/1/1b/image_filters2.png)](</File:image_filters2.png>)
7565
7666### Image perspective
7767
78-This program demonstrates the different ways of applying a texture to a quad.
68+This program demonstrates the different ways of applying a texture to a quad.
7969
80-<figure>
81-<img src="image_perspective.png" title="image_perspective.png" width="400" />
82-<figcaption>image_perspective.png</figcaption>
83-</figure>
70+[![image perspective.png](/wiki-images/7/7a/image_perspective.png)](</File:image_perspective.png>)
8471
8572---
86-*From the Free Pascal wiki, page "BGRABitmap AggPas", as it stood on 2023-05-21 after a change by Circular, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*
73+*From the Free Pascal wiki, page "BGRABitmap AggPas", as the Internet Archive kept it on 2023-05-30. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history