Home > Mobile > QT graph can be converted to bitmap data array
QT graph can be converted to bitmap data array
Time:09-26
I use qcustomplot draw a sine curve
Then I have a thermal printer to print the conditions of the bitmap is need bitmap bitmap hexadecimal data
So, how can I turn graph data printed?? Beg you Daniel guidance..
CodePudding user response:
You can use the bool QCustomPlot: : saveBmp (const QString & amp; FileName, int width, int height, double scale, int resolution, QCP: : ResolutionUnit ResolutionUnit), In addition to look at how much is your printer memory and can support a picture the size of the cache,
CodePudding user response:
Yes this is the graph into BMP file, printer can recognize the image file, specific how to implement
CodePudding user response:
Excuse me, can you solve it? I also encountered this problem now
CodePudding user response:
Search related thermal printers, c # algorithm are helpful to you, little c + +