summaryrefslogtreecommitdiff
path: root/SharedGraphics
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-23 12:37:33 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-23 12:37:33 +0100
commit92627154a7e1e7e5284f8db20ba18b93711d28fe (patch)
tree219b462a65af76fa7cc39ff9381e66214c57e658 /SharedGraphics
parent1355d09c720cf04e58c7b5478150764781d6bf13 (diff)
downloadserenity-92627154a7e1e7e5284f8db20ba18b93711d28fe.zip
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.
Diffstat (limited to 'SharedGraphics')
-rw-r--r--SharedGraphics/GraphicsBitmap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/SharedGraphics/GraphicsBitmap.h b/SharedGraphics/GraphicsBitmap.h
index 26f3efa396..e48584df69 100644
--- a/SharedGraphics/GraphicsBitmap.h
+++ b/SharedGraphics/GraphicsBitmap.h
@@ -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&);