ATImageBox
About
This is TScrollBox with embedded TImage. Control can auto position image inside, using options:
- fit image (by total size, by width only, by height only)
- fit only bigger image
- center image
- scale image

Usage:
- Methods LoadFromFile, LoadPicture loads an image.
- Props Opt* are new published props.
- Public props: ImageWidth, ImageHeight, ImageZoom (scale in percents).
Author: Alexey Torgashin
Hotkeys
Keyboard hotkeys:
- arrows: scroll by small step
- Ctrl+arrows: scroll to edge
- Home, End, PgUp, PgDown: scroll by big step
Mouse:
- dragging of image (when image is bigger)
- Ctrl+ mouse wheel: zoom in/out
- Shift+ mouse wheel: horizontal scroll
Download
GitHub: https://github.com/Alexey-T/ATImageBox-Lazarus
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.
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
