Go to the documentation of this file.
17 this->deleteToolLayer();
28 this->createToolLayer();
35 this->mergeToolLayer();
36 this->deleteToolLayer();
50 void IntelliTool::createToolLayer(){
51 Area->createTempLayerAfter(
Area->activeLayer);
56 void IntelliTool::mergeToolLayer(){
63 float t = static_cast<float>(clr_1.alpha())/255.f;
64 int r =static_cast<int>(static_cast<float>(clr_1.red())*(t)+static_cast<float>(clr_0.red())*(1.f-t)+0.5f);
65 int g =static_cast<int>(static_cast<float>(clr_1.green())*(t)+static_cast<float>(clr_0.green())*(1.f-t)+0.5f);
66 int b =static_cast<int>(static_cast<float>(clr_1.blue())*(t)+static_cast<float>(clr_0.blue()*(1.f-t))+0.5f);
67 int a =std::min(clr_0.alpha()+clr_1.alpha(), 255);
78 void IntelliTool::deleteToolLayer(){
The PaintingArea class manages the methods and stores information about the current painting area,...
void deleteLayer(int index)
The deleteLayer method removes a layer at a given index.
The IntelliColorPicker manages the selected colors for one whole project.
QImage imageData
The underlying image data.
virtual void calculateVisiblity()=0
An abstract function that calculates the visiblity of the Image data if needed.