> For the complete documentation index, see [llms.txt](https://docs.sevenpens.com/devnotes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sevenpens.com/devnotes/pen-input-on-windows/pen-input/apis-by-scenario.md).

# APIs by scenario

| Scenario                             | Recommended API                       | Why                                          |
| ------------------------------------ | ------------------------------------- | -------------------------------------------- |
| Maximum tablet precision for drawing | Wintab using Digitizer context        | Only API that preserves full tablet LPI      |
| Simple pen input, modern app         | WinUI PointerPoint or WPF StylusPoint | Built into the framework, no dependencies    |
| Cross-framework pen input library    | Wintab (via .NET wrapper)             | Works in all .NET UI frameworks via P/Invoke |
| Touch + pen discrimination           | WM\_POINTER                           | Designed for multi-input-type scenarios      |
| Airbrush / barrel pressure           | Wintab                                | Only API exposing tangential pressure        |
| Pen height above tablet              | Wintab                                | Only API exposing Z axis                     |
