diff options
author | Torstennator <engelTorsten@gmx.de> | 2022-04-18 15:24:49 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-21 17:26:52 +0200 |
commit | b7e8f32323c9fd8bc1fcd2058e717d4307fa8f1f (patch) | |
tree | b90df39215899e18ef4d80f6d961b70582b4581b /Userland/Applications/PixelPaint/MainWidget.h | |
parent | 5702f016f008109c8807ed0be4d93e1fa12be938 (diff) | |
download | serenity-b7e8f32323c9fd8bc1fcd2058e717d4307fa8f1f.zip |
PixelPaint: Add a histogram widget
This adds a simple histogram widget that visualizes the rgb-channels
and brightness for a given image. When hovering over the image it will
indicate what brightness level the pixel at the mouse position has.
Diffstat (limited to 'Userland/Applications/PixelPaint/MainWidget.h')
-rw-r--r-- | Userland/Applications/PixelPaint/MainWidget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/MainWidget.h b/Userland/Applications/PixelPaint/MainWidget.h index 440b977cf0..c817abfa92 100644 --- a/Userland/Applications/PixelPaint/MainWidget.h +++ b/Userland/Applications/PixelPaint/MainWidget.h @@ -7,6 +7,7 @@ #pragma once #include "Guide.h" +#include "HistogramWidget.h" #include "IconBag.h" #include "Image.h" #include "ImageEditor.h" @@ -58,6 +59,7 @@ private: RefPtr<ToolboxWidget> m_toolbox; RefPtr<PaletteWidget> m_palette_widget; + RefPtr<HistogramWidget> m_histogram_widget; RefPtr<LayerListWidget> m_layer_list_widget; RefPtr<LayerPropertiesWidget> m_layer_properties_widget; RefPtr<ToolPropertiesWidget> m_tool_properties_widget; |