BGRABitmap AggPas: what changed
Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | - | ||
| 2 | - | ||
| 3 | - | ||
| 4 | - | ||
| 5 | - | ||
| 1 | + | Here is a series of projects demonstrating advanced capabilities in [[BGRABitmap]] similar to [AggPas](http://www.crossgl.com/aggpas/) | |
| 6 | 2 | ||
| 7 | - | ||
| 8 | - | ||
| 9 | - | ||
| 10 | - | ||
| 11 | - | ||
| 12 | - | ||
| 13 | - | ||
| 14 | - | ||
| 3 | + | The projects are in the bgraaggtest folder in [BGRABitmap repository](https://github.com/bgrabitmap/bgrabitmap/tree/master/test/bgraaggtest) | |
| 15 | 4 | ||
| 16 | 5 | ### Antialiasing demo (AA demo) | |
| 17 | 6 | ||
| 18 | - | ||
| 7 | + | This program shows how the gamma factor affects how antialiasing is rendered. | |
| 19 | 8 | ||
| 20 | - | ||
| 9 | + | <img src="aa_demo.png" title="aa_demo.png" width="400" /> | |
| 21 | 10 | ||
| 22 | 11 | ### Alpha gradient | |
| 23 | 12 | ||
| 24 | - | ||
| 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. | |
| 25 | 14 | ||
| 26 | - | ||
| 15 | + | <img src="alpha_gradient.png" title="alpha_gradient.png" width="400" /> | |
| 27 | 16 | ||
| 28 | 17 | ### Blur | |
| 29 | 18 | ||
| 30 | - | ||
| 19 | + | This program shows the different types of blurs and their speed. | |
| 31 | 20 | ||
| 32 | - | ||
| 21 | + | <img src="blur.png" title="blur.png" width="400" /> | |
| 33 | 22 | ||
| 34 | 23 | ### Bézier like splines (B-spline) | |
| 35 | 24 | ||
| 36 | - | ||
| 25 | + | This program to demonstrate various kind of spline interpolations and how to use a path cursor. | |
| 37 | 26 | ||
| 38 | - | ||
| 27 | + | <img src="bspline.png" title="bspline.png" width="400" /> | |
| 39 | 28 | ||
| 40 | - | ||
| 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. | |
| 41 | 30 | ||
| 42 | - | ||
| 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. | |
| 43 | 32 | ||
| 44 | - | ||
| 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. | |
| 45 | 34 | ||
| 46 | - | ||
| 35 | + | The `CurrentCoordinate` property contains the current position and the `CurrentTangent` contains a unit vector to align the shape. | |
| 47 | 36 | ||
| 48 | 37 | ### Distortions | |
| 49 | 38 | ||
| 50 | - | ||
| 39 | + | This program shows how to apply a distortion to an image or a gradient. | |
| 51 | 40 | ||
| 52 | - | ||
| 41 | + | <img src="distortions.png" title="distortions.png" width="400" /> | |
| 53 | 42 | ||
| 54 | 43 | ### Gouraud shading | |
| 55 | 44 | ||
| 56 | - | ||
| 45 | + | This program demonstrates how to do a multi-polygon Gouraud shading. | |
| 57 | 46 | ||
| 58 | - | ||
| 47 | + | <img src="gouraud.png" title="gouraud.png" width="400" /> | |
| 59 | 48 | ||
| 60 | 49 | ### Image filters 2 | |
| 61 | 50 | ||
| 62 | - | ||
| 51 | + | This program shows the various interpolation filters that can be used when resampling. | |
| 63 | 52 | ||
| 64 | - | ||
| 53 | + | <img src="image_filters2.png" title="image_filters2.png" width="400" /> | |
| 65 | 54 | ||
| 66 | 55 | ### Image perspective | |
| 67 | 56 | ||
| 68 | - | ||
| 57 | + | This program demonstrates the different ways of applying a texture to a quad. | |
| 69 | 58 | ||
| 70 | - | ||
| 59 | + | <img src="image_perspective.png" title="image_perspective.png" width="400" /> | |
| 71 | 60 | ||
| 72 | 61 | --- | |
| 73 | - | ||
| 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).* |
