| 28 | struct ByteArrayBuf : public std::streambuf |
| 29 | { |
| 30 | ByteArrayBuf(const QByteArray & a) |
| 31 | { |
| 32 | setg((char *)a.data(), (char *)a.data(), (char *)a.data() + a.size()); |
| 33 | } |
| 34 | }; |
| 35 | |
| 36 | QImage ApiSurface::calculateThumbnail(bool opaque, bool alpha) const |