TCanvas: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: TCanvas
| Old | New | Line | |
|---|---|---|---|
| 1 | + | A **TCanvas** is the primary tool to draw graphics. | |
| 2 | + | ||
| 3 | + | To draw lines, boxes and text a [[TPen]], [[TBrush]] and [[TFont]] are to be used to determine pen size and color, brush style and color, font style and color. | |
| 4 | + | ||
| 5 | + | | | | | |
| 6 | + | |----|----| | |
| 7 | + | | Render text | TextOut( x, y, text ) | | |
| 8 | + | | Draw line | Line( x1, y1, x2, y2 ); LineTo( x, y ) with MoveTo(x, y ) | | |
| 9 | + | | Draw a box | Rectangle( l, t, r, b ); Rectangle( R: TRect ); FillRect(...) | | |
| 10 | + | | Draw a circle | Ellipse( l, t, r, b ); Ellipse( R: TRect ) | | |
| 11 | + | ||
| 12 | + | --- | |
| 13 | + | *From the Free Pascal wiki, page "TCanvas", as it stood on 2023-12-15 after a change by Coz, 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).* |
