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