Practical examples for common KGP use cases. All code is runnable and assumes you have imported github.com/SerenaFontaine/kgp.
Quick Navigation
- Basic Image Display — PNG, RGBA, RGB formats
- Multiple Placements — One image, many displays
- Cropping and Scaling — Source rect and display size
- Z-Index Layering — Images above and below text
- Deletion — Removing images and placements
- Animation — Frames, playback, composition
- Relative Positioning — Parent-child placement
- Chunked Transmission — Large images over remote connections
- Compression — ZLIB for raw formats
- File & Shared Memory — File, temp file, shared memory
- Error Handling — Parsing responses
- Demo Application — Full interactive demo