Please review Class TWindow Method Say(). As Class TImage inherits from TControl and TControl from TWindow, then you can use Method Say() on a TImage object too
If you need to save it in a different format from BMP, please review Class TImage Method SaveImage(), and modify it based on the previous msg source code