开发者

support qt a 18bit display?

开发者 https://www.devze.com 2023-02-07 14:42 出处:网络
It is possible to control a 18 bit display with QT? The display gets his data in 3 bytes per pixel 开发者_开发问答(18bit), but only the first 6 bits per byte are evaluated for colorinformation.By 1st

It is possible to control a 18 bit display with QT? The display gets his data in 3 bytes per pixel 开发者_开发问答(18bit), but only the first 6 bits per byte are evaluated for colorinformation.


By 1st 6 bits do you mean the 6 MSBs or LSBs? That is, are the valid bits [RRRRRR--][GGGGGG--][BBBBBB--] or [--RRRRRR][--GGGGGG][--BBBBBB]?

If it the former (6 MSBs) you can just feed the display QImage::Format_RGB888 data. The LSBs will just be ignored. If it's the later, you can try QImage::Format_RGB666, which uses LSBs.

0

精彩评论

暂无评论...
验证码 换一张
取 消