mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-12 19:40:28 +02:00
Painting made 'possible'
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QtCreatorProject>
|
||||
<!-- Written by QtCreator 4.10.2, 2019-12-04T18:58:17. -->
|
||||
<!-- Written by QtCreator 4.10.2, 2019-12-04T22:47:53. -->
|
||||
<qtcreator>
|
||||
<data>
|
||||
<variable>EnvironmentId</variable>
|
||||
|
||||
@@ -19,6 +19,7 @@ PaintingArea::PaintingArea(int maxWidth, int maxHeight, QWidget *parent)
|
||||
this->addLayer(200,200,150,150);
|
||||
layerStructure[1].image->floodFill(QColor(0,255,0,255));
|
||||
layerStructure[1].alpha=100;
|
||||
activeLayer=1;
|
||||
}
|
||||
|
||||
|
||||
@@ -124,7 +125,7 @@ void PaintingArea::clearImage()
|
||||
return;
|
||||
}
|
||||
IntelliImage* active = layerStructure[activeLayer].image;
|
||||
active->floodFill(qRgb(255, 255, 255));
|
||||
active->floodFill(QColor(255, 255, 255, 255));
|
||||
|
||||
update();
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user