PrintRaw24BitBGRData
Rendering and printing
Description
Sends a bitmap to a printer device context through the driver's compressed pass-through, JPEG first and PNG as fallback
There is no plain raster fallback in this helper; when neither compressed path is available or the driver rejects the draw the function returns False without printing
Syntax
Delphi
Function PrintRaw24BitBGRData(PrinterDevice: HDC; BM: TBitmap; DrawLeft, DrawTop, DrawWidth, DrawHeight, PrintMode: Integer): Boolean;Parameters
| PrinterDevice | Device context of the printer |
|---|---|
| BM | Source bitmap whose pixels are printed |
| DrawLeft | Left edge of the destination rectangle in device units |
| DrawTop | Top edge of the destination rectangle in device units |
| DrawWidth | Width of the destination rectangle in device units |
| DrawHeight | Height of the destination rectangle in device units |
| PrintMode | 0 prefers JPEG pass-through and falls back to PNG, 1 uses PNG only, 2 or higher disables both compressed paths |
Return values
| False | No compressed path was available or the draw failed |
|---|---|
| True | The compressed draw succeeded |
Remarks
These helpers exist only on Windows; the non-Windows stubs report no support and print nothing
Availability comes from PrinterJPEGCaps and PrinterPNGCaps
See also
PrintRaw24BitBGRRect, PrinterJPEGCaps, PrinterPNGCaps, PrinterStretchDIBCaps