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)
|
Parameter |
Description |
|
fDec |
The signed decimal value to print. |
|
bSigDigits |
The number of significant digits to print: |
bDecDigits — The number of decimal digits to print:
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:
Prints a signed decimal using a BDF font.
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, 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: Produce online help for Qt applications