mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-14 04:10:31 +02:00
Vollständiger Gradient
Achtung!!! Sehr Rechenaufwendig und im Fastrenderer noch nicht ordentlich nutzbar
This commit is contained in:
@@ -39,7 +39,7 @@ LayerObject::LayerObject(const LayerObject& layer){
|
||||
|
||||
PaintingArea::PaintingArea(int maxWidth, int maxHeight, QWidget*parent)
|
||||
: QLabel(parent){
|
||||
this->Tool = new IntelliToolGradient(this,&colorPicker,&Toolsettings);
|
||||
this->Tool = nullptr;
|
||||
this->setLayerDimensions(maxWidth, maxHeight);
|
||||
activeLayer = -1;
|
||||
}
|
||||
@@ -275,6 +275,11 @@ void PaintingArea::createFloodFillTool(){
|
||||
Tool = new IntelliToolFloodFill(this, &colorPicker, &Toolsettings);
|
||||
}
|
||||
|
||||
void PaintingArea::createGradientTool(){
|
||||
delete this->Tool;
|
||||
Tool = new IntelliToolGradient(this, &colorPicker, &Toolsettings);
|
||||
}
|
||||
|
||||
int PaintingArea::getWidthOfActive(){
|
||||
return this->layerBundle[static_cast<size_t>(activeLayer)].width;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user