摘要: QImage image;QByteArray ba;QBuffer buffer(&ba);buffer.open(QIODevice::WriteOnly);image.save(&buffer, "PNG"); // writes image into ba in PNG format 阅读全文
posted @ 2019-04-03 11:08 lehoho 阅读(649) 评论(0) 推荐(0) 编辑