guides:programming:programmers_reference_manual:calcbmp_set_printer_message

CALCBMP Set_Printer Message

The CALCBMP message is used to calculate the width and height of a bitmap before printing it. Use the Get_Printer CALCBMP message to retrieve the width and height of the bitmap after setting the bitmap with the CALCBMP message.

ParameterDescriptionCommentsDefault
Parm1 - Bmp<1> Bitmap filePath to the bitmap""

JPEG, GIF, and True Color Bitmaps can be printed.

*The following example shows how to use the CALCBMP message.
declare function Set_Printer, Get_Printer
stat = Set_Printer("INIT") ;* Start printing
stat = Set_Printer("CALCBMP", "BMPS\TEST.BMP")
size = Get_Printer("CALCBMP") ;* get the size
bmpWidth = size<1> ;* width
bmpHeight = size<2> ;* height
stat = Set_Printer("TERM") ;* End printing
  • guides/programming/programmers_reference_manual/calcbmp_set_printer_message.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1