Sign in Join
Wiki copytemporary

BGRABitmap AggPas: what changed

Revision 3 to 4. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
11Here is a series of projects demonstrating advanced capabilities in [[BGRABitmap]] similar to [AggPas](http://www.crossgl.com/aggpas/)
22
33The projects are in the bgraaggtest folder in [BGRABitmap repository](https://github.com/bgrabitmap/bgrabitmap/tree/master/test/bgraaggtest)
44
55### Antialiasing demo (AA demo)
66
77This program shows how the gamma factor affects how antialiasing is rendered.
88
9-<img src="aa_demo.png" title="aa_demo.png" width="400" />
9+![](/wiki-images/8/82/Aa_demo.png)
1010
1111### Alpha gradient
1212
1313This 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.
1414
15-<img src="alpha_gradient.png" title="alpha_gradient.png" width="400" />
15+![](/wiki-images/b/b6/Alpha_gradient.png)
1616
1717### Blur
1818
1919This program shows the different types of blurs and their speed.
2020
21-<img src="blur.png" title="blur.png" width="400" />
21+![](/wiki-images/f/f4/Blur.png)
2222
2323### Bézier like splines (B-spline)
2424
2525This program to demonstrate various kind of spline interpolations and how to use a path cursor.
2626
27-<img src="bspline.png" title="bspline.png" width="400" />
27+![](/wiki-images/6/6a/Bspline.png)
2828
2929The 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.
3030
3131Once 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.
3232
3333Do 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.
3434
3535The `CurrentCoordinate` property contains the current position and the `CurrentTangent` contains a unit vector to align the shape.
3636
3737### Distortions
3838
3939This program shows how to apply a distortion to an image or a gradient.
4040
41-<img src="distortions.png" title="distortions.png" width="400" />
41+![](/wiki-images/8/80/Distortions.png)
4242
4343### Gouraud shading
4444
4545This program demonstrates how to do a multi-polygon Gouraud shading.
4646
47-<img src="gouraud.png" title="gouraud.png" width="400" />
47+![](/wiki-images/e/e3/Gouraud.png)
4848
4949### Image filters 2
5050
5151This program shows the various interpolation filters that can be used when resampling.
5252
53-<img src="image_filters2.png" title="image_filters2.png" width="400" />
53+![](/wiki-images/7/78/Image_filters2.png)
5454
5555### Image perspective
5656
5757This program demonstrates the different ways of applying a texture to a quad.
5858
59-<img src="image_perspective.png" title="image_perspective.png" width="400" />
59+![](/wiki-images/f/f4/Image_perspective.png)
6060
6161---
6262*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