BGRABitmap tutorial: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: BGRABitmap tutorial
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Welcome to the index of the tutorials for the [[BGRABitmap]] library. You can browse tutorials by number with the bar on the top, or by the following categories: | |
| 2 | + | ||
| 3 | + | ### Install BGRABitmap and draw basic shapes | |
| 4 | + | ||
| 5 | + | TBGRABitmap images have drawing functions using floating point coordinates or integer coordinates. | |
| 6 | + | ||
| 7 | + | - [[BGRABitmap tutorial 1|Installing BGRABitmap (No. 1)]] | |
| 8 | + | - [[BGRABitmap tutorial 2|Loading and displaying an image (No. 2)]] | |
| 9 | + | - [[BGRABitmap tutorial 3|Drawing with the mouse (No. 3)]] | |
| 10 | + | - [[BGRABitmap tutorial 6|Line styles (No. 6)]] | |
| 11 | + | - [[BGRABitmap tutorial 7|Splines and Bézier curves (No. 7)]] | |
| 12 | + | - [[BGRABitmap tutorial 12|Text functions (No. 12)]] | |
| 13 | + | - [[BGRABitmap tutorial 13|Integer coordinates and floating point coordinates (No. 13)]] | |
| 14 | + | ||
| 15 | + | ### Textures and scanners | |
| 16 | + | ||
| 17 | + | Pixels are a table in memory containing values in the TBGRAPixel format. At this level, we can do various operations: | |
| 18 | + | ||
| 19 | + | - [[BGRABitmap tutorial 4|Direct pixel access with Scanline (No. 4)]] | |
| 20 | + | - [[BGRABitmap tutorial 5|Combining layers of pixels (No. 5)]] | |
| 21 | + | - [[BGRABitmap tutorial 8|Generating textures (No. 8)]] | |
| 22 | + | - [[BGRABitmap tutorial 9|Phong shading using textures (No. 9)]] | |
| 23 | + | - [[BGRABitmap tutorial 10|Texture mapping (No. 10)]] | |
| 24 | + | - [[BGRABitmap tutorial 11|Using scanners to combine transformations (No. 11)]] | |
| 25 | + | ||
| 26 | + | ### Other drawing contexts | |
| 27 | + | ||
| 28 | + | It is possible to have other contexts, that provide/allow other basic drawing functions: | |
| 29 | + | ||
| 30 | + | - Standard Canvas (Canvas and CanvasOpacity properties) : avoid using it because of the slowness of conversions of bitmap data | |
| 31 | + | - Canvas with features brought by BGRABitmap (CanvasBGRA property, Brush and Pen have an Opacity property) | |
| 32 | + | - [How to convert your application from TCanvas to CanvasBGRA (video)](http://www.youtube.com/watch?v=HGYSLgtYx-U) | |
| 33 | + | - [[BGRABitmap tutorial 14|Drawing with a 2D canvas with affine transformations (No. 14)]] | |
| 34 | + | - [[BGRABitmap tutorial 15|Real 3D rendering (No. 15)]] | |
| 35 | + | - [[BGRABitmap tutorial 16|Using textures with 3D rendering (No. 16)]] | |
| 36 | + | ||
| 37 | + | ### More | |
| 38 | + | ||
| 39 | + | You can use BGRABitmap to [[BGRABitmap tutorial TAChart|improve TAChart rendering]]. | |
| 40 | + | ||
| 41 | + | You can use it as well to display icons with the [[SVG Image List]]. | |
| 42 | + | ||
| 43 | + | More classes are available (you need to create them when you need them): | |
| 44 | + | ||
| 45 | + | - [TBGRATextEffect](https://bgrabitmap.github.io/doc/BGRATextFX.TBGRATextEffect.html), in unit BGRATextFX, allows to prepare the drawing of text line, to add effects like contour and shadow. | |
| 46 | + | - [TBGRALayeredBitmap](https://bgrabitmap.github.io/doc/BGRALayers.TBGRALayeredBitmap.html), in unit BGRALayers, allow to create a multi-layered bitmap. Units [BGRAPaintNet](https://bgrabitmap.github.io/doc/BGRAPaintNet.TPaintDotNetFile.html) and [BGRAOpenRaster](https://bgrabitmap.github.io/doc/BGRAOpenRaster.html) contain implementations to read and write in Paint.NET format (read only) and OpenRaster format (read and write). | |
| 47 | + | - Units [BGRAGradientScanner](https://bgrabitmap.github.io/doc/BGRAGradientScanner.html) and [BGRATransform](https://bgrabitmap.github.io/doc/BGRATransform.html) contain scanners to do various effects. | |
| 48 | + | - Unit [BGRAGradients](https://bgrabitmap.github.io/doc/BGRAGradients.html) contain procedures to generate gradients and TPhongShading class for Phong shading. | |
| 49 | + | - [TBGRACompressableBitmap](https://bgrabitmap.github.io/doc/BGRACompressableBitmap.html), in unit BGRACompressableBitmap, allow to store and compress images. | |
| 50 | + | ||
| 51 | + | See [list of all units](https://bgrabitmap.github.io/doc/AllUnits.html). | |
| 52 | + | ||
| 53 | + | Some units contient low level functions, and you should not need to use them for a normal usage. | |
| 54 | + | ||
| 55 | + | --- | |
| 56 | + | *From the Free Pascal wiki, page "BGRABitmap tutorial", as it stood on 2024-04-03 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).* | |
| 57 | + | Category: BGRABitmap | |
| 58 | + | Category: Graphics | |
| 59 | + | Category: Lazarus | |
| 60 | + | Category: Tutorials |
