TftPrintBdfDecimal(fDec As Float, bSigDigits As Byte, bDecDigits As Byte, wX_Pos As Word, wY_Pos As Word, wForeColor As Word, wBackColor As Word, pTransparent As Bit)
fDec: The signed decimal value to print.
bSigDigits: The number of significant digits to print:
• If bSigDigits is larger than the number of significant digits, leading zeroes will be added.
• If bSigDigits is smaller than the number of significant digits, only bSigDigits digits will be printed.
• If bSigDigits = 0, the number of significant digits will be determined automatically.
bDecDigits: The number of decimal digits to print:
• If bDecDigits is larger than the number of decimal digits, trailing zeroes will be added.
• If bDecDigits is smaller than the number of decimal digits, only bDecDigits digits will be printed.
• If bDecDigits = 0, a signed integer will be printed.
wX_Pos: The absolute X position of the character's lower-left corner.
wY_Pos: The absolute Y position of the character's lower-left corner.
wForeColor: The 16-bit RGB565 color for the character (used for the active pixels in the glyph).
wBackColor: The 16-bit RGB565 color for the background (used for the empty pixels in the glyph box).
pTransparent: Whether to use transparency:
• 1: Yes (only active pixels are printed, preserving the background).
• 0: No (inactive pixels are filled with the background color).
Print a signed decimal using BDF font.
Example:
TftPrintBdfDecimal(-12345.678, 7, 4, 0, 0, WHITE, BLACK, 0)
Note: When transparency is used, the background color (wBackColor) is ignored, and only the active pixels of the glyph are printed. This is slower than using the background color.
Include "TftLib\Fonts\SND\F5_BDF_Sail-Regular-25.inc" '.... TftSetUp(0) TftSetBdfFont(5) TftResetScreen(BLUE) TftPrintBdfDecimal(-12345.678, 0, 0, 10, 10, WHITE, BLACK, 1) TftPrintBdfDecimal(-12345.678, 7, 5, 10, 40, WHITE, BLACK, 1) TftPrintBdfDecimal(-12345.678, 0, 2, 10, 70, WHITE, BLACK, 1) TftPrintBdfDecimal(-12345.678, 0, 0, 10, 130, WHITE, BLACK, 0) TftPrintBdfDecimal(-12345.678, 7, 5, 10, 170, WHITE, BLACK, 0) TftPrintBdfDecimal(-12345.678, 0, 2, 10, 200, WHITE, BLACK, 0) |
Created with the Personal Edition of HelpNDoc: Achieve Professional Documentation Results with a Help Authoring Tool