|
Images printing
All images print jobs are derived form the abstract TBitmapPrintJob component. This component draws bitmap on the page in the different modes: the bitmap can be scaled, fitted, stretched and aligned on the page. The AlignHorizontal and AlignVertical properties control the alignment the bitmap on the page, and the StretchMode property determines the mode and scale (fit, stretch or scale from 50% to 200%). TBitmapPrintJob has the abstract GetBitmap method that is overriden in all derived components to define the print job contents. The bitmap is stored in the internal buffer and is modified only when the UpdateBitmap method is called (calling the Update method does not change the bitmap).
- TScreenshotPrintJob
- Prints the entire screen image
- TImagePrintJob
- Prints the graphics from the linked TImage component
- TControlPrintJob*
- Prints the image of the linked control
- TFormPrintJob*
- Prints the image of the form owning the print job component
* These two components cannot retreive the correct image of the control or form when start the program because the VCL controls are created before the real windows are create, so the print job's bitmap may contain only the screen image within the bounds of the control or form. To get the correct bitmap call the UpdateBitmap method of the print job component after showing the control or form on the screen.
|