1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:57:45 +00:00

FileManager: Add basic thumbnailing of PNG images.

These use nearest neighbor and are computed synchronously on directory load
so it's neither fast nor very beautiful. These issues both need work on
other parts of the system to fix.
This commit is contained in:
Andreas Kling 2019-03-23 12:37:33 +01:00
parent 1355d09c72
commit 92627154a7
3 changed files with 17 additions and 2 deletions

View file

@ -30,6 +30,7 @@ public:
int shared_buffer_id() const { return m_shared_buffer ? m_shared_buffer->shared_buffer_id() : -1; }
bool has_alpha_channel() const { return m_format == Format::RGBA32; }
Format format() const { return m_format; }
private:
GraphicsBitmap(Format, const Size&);