Is QImage able to open and render pure 16-bit images?

前端 未结 5 873
伪装坚强ぢ
伪装坚强ぢ 2021-01-27 03:43

I think the headline already explains what I want to know.
Is there a possible way to open and save images with 16-bit with Qt? And I don\'t mean the 3*8=24bit or 4*8=32bit,

5条回答
  •  野的像风
    2021-01-27 04:22

    Contrary to what Patrice says, there is no 16 bits per component format in QImage. The most you can get is QImage::Format_ARGB32 at 8 bits per component. Even if you used 8 bits indexed mode, the color tables do not support more than 8 bits per component. Moreover, the QImageIOHandler class works in terms of QImage, so you cannot create a custom image format plug-in to work with 16 bits per color component, unfortunately.

提交回复
热议问题