mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:27:43 +00:00
PaintBrush: Add support for opening files.
Obviously this only supports whatever PNG files that load_png() can decode at the moment.
This commit is contained in:
parent
8adae51b35
commit
b529b4a3e6
3 changed files with 24 additions and 0 deletions
|
@ -90,3 +90,9 @@ void PaintableWidget::set_secondary_color(Color color)
|
|||
if (on_secondary_color_change)
|
||||
on_secondary_color_change(color);
|
||||
}
|
||||
|
||||
void PaintableWidget::set_bitmap(const GraphicsBitmap& bitmap)
|
||||
{
|
||||
m_bitmap = bitmap;
|
||||
update();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue