ATImageBox: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: ATImageBox
| Old | New | Line | |
|---|---|---|---|
| 1 | + | # About | |
| 2 | + | ||
| 3 | + | This is TScrollBox with embedded TImage. Control can auto position image inside, using options: | |
| 4 | + | ||
| 5 | + | - fit image (by total size, by width only, by height only) | |
| 6 | + | - fit only bigger image | |
| 7 | + | - center image | |
| 8 | + | - scale image | |
| 9 | + | ||
| 10 | + | <figure> | |
| 11 | + | <img src="ATImageBox.png" title="ATImageBox.png" /> | |
| 12 | + | <figcaption>ATImageBox.png</figcaption> | |
| 13 | + | </figure> | |
| 14 | + | ||
| 15 | + | Usage: | |
| 16 | + | ||
| 17 | + | - Methods LoadFromFile, LoadPicture loads an image. | |
| 18 | + | - Props Opt* are new published props. | |
| 19 | + | - Public props: ImageWidth, ImageHeight, ImageZoom (scale in percents). | |
| 20 | + | ||
| 21 | + | Author: Alexey Torgashin | |
| 22 | + | ||
| 23 | + | # Hotkeys | |
| 24 | + | ||
| 25 | + | Keyboard hotkeys: | |
| 26 | + | ||
| 27 | + | - arrows: scroll by small step | |
| 28 | + | - Ctrl+arrows: scroll to edge | |
| 29 | + | - Home, End, PgUp, PgDown: scroll by big step | |
| 30 | + | ||
| 31 | + | Mouse: | |
| 32 | + | ||
| 33 | + | - dragging of image (when image is bigger) | |
| 34 | + | - Ctrl+ mouse wheel: zoom in/out | |
| 35 | + | - Shift+ mouse wheel: horizontal scroll | |
| 36 | + | ||
| 37 | + | # Download | |
| 38 | + | ||
| 39 | + | GitHub: <https://github.com/Alexey-T/ATImageBox-Lazarus> | |
| 40 | + | ||
| 41 | + | --- | |
| 42 | + | *From the Free Pascal wiki, page "ATImageBox", as it stood on 2022-03-04 after a change by Alextp, 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).* | |
| 43 | + | Category: Components |
