Sign in Join
Wiki copytemporary

BGRABitmap AggPas: what changed

Revision 2 to 3. 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/>)
2-
3-The projects are in the **bgraaggtest** folder in [BGRABitmap repository](<https://github.com/bgrabitmap/bgrabitmap/tree/master/test/bgraaggtest>)
4-
5-## Contents
1+Here is a series of projects demonstrating advanced capabilities in [[BGRABitmap]] similar to [AggPas](http://www.crossgl.com/aggpas/)
62
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
3+The projects are in the bgraaggtest folder in [BGRABitmap repository](https://github.com/bgrabitmap/bgrabitmap/tree/master/test/bgraaggtest)
154
165### Antialiasing demo (AA demo)
176
18-This program shows how the gamma factor affects how antialiasing is rendered.
7+This program shows how the gamma factor affects how antialiasing is rendered.
198
20-[![aa demo.png](/wiki-images/6/69/aa_demo.png)](</File:aa_demo.png>)
9+<img src="aa_demo.png" title="aa_demo.png" width="400" />
2110
2211### Alpha gradient
2312
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.
13+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.
2514
26-[![alpha gradient.png](/wiki-images/e/e2/alpha_gradient.png)](</File:alpha_gradient.png>)
15+<img src="alpha_gradient.png" title="alpha_gradient.png" width="400" />
2716
2817### Blur
2918
30-This program shows the different types of blurs and their speed.
19+This program shows the different types of blurs and their speed.
3120
32-[![blur.png](/wiki-images/7/72/blur.png)](</File:blur.png>)
21+<img src="blur.png" title="blur.png" width="400" />
3322
3423### Bézier like splines (B-spline)
3524
36-This program to demonstrate various kind of spline interpolations and how to use a path cursor.
25+This program to demonstrate various kind of spline interpolations and how to use a path cursor.
3726
38-[![bspline.png](/wiki-images/2/28/bspline.png)](</File:bspline.png>)
27+<img src="bspline.png" title="bspline.png" width="400" />
3928
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.
29+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.
4130
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.
31+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.
4332
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.
33+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.
4534
46-The `CurrentCoordinate` property contains the current position and the `CurrentTangent` contains a unit vector to align the shape.
35+The `CurrentCoordinate` property contains the current position and the `CurrentTangent` contains a unit vector to align the shape.
4736
4837### Distortions
4938
50-This program shows how to apply a distortion to an image or a gradient.
39+This program shows how to apply a distortion to an image or a gradient.
5140
52-[![distortions.png](/wiki-images/b/ba/distortions.png)](</File:distortions.png>)
41+<img src="distortions.png" title="distortions.png" width="400" />
5342
5443### Gouraud shading
5544
56-This program demonstrates how to do a multi-polygon Gouraud shading.
45+This program demonstrates how to do a multi-polygon Gouraud shading.
5746
58-[![gouraud.png](/wiki-images/5/56/gouraud.png)](</File:gouraud.png>)
47+<img src="gouraud.png" title="gouraud.png" width="400" />
5948
6049### Image filters 2
6150
62-This program shows the various interpolation filters that can be used when resampling.
51+This program shows the various interpolation filters that can be used when resampling.
6352
64-[![image filters2.png](/wiki-images/1/1b/image_filters2.png)](</File:image_filters2.png>)
53+<img src="image_filters2.png" title="image_filters2.png" width="400" />
6554
6655### Image perspective
6756
68-This program demonstrates the different ways of applying a texture to a quad.
57+This program demonstrates the different ways of applying a texture to a quad.
6958
70-[![image perspective.png](/wiki-images/7/7a/image_perspective.png)](</File:image_perspective.png>)
59+<img src="image_perspective.png" title="image_perspective.png" width="400" />
7160
7261---
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).*
62+*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).*

Back to history