Go to the documentation of this file.
18 this->deleteToolLayer();
29 this->createToolLayer();
36 this->mergeToolLayer();
37 this->deleteToolLayer();
51 void IntelliTool::createToolLayer(){
52 Area->createTempTopLayer(
Area->activeLayer);
54 this->
Canvas=&
Area->layerBundle[static_cast<unsigned long long>(
Area->activeLayer+1)];
57 void IntelliTool::mergeToolLayer(){
64 float t = static_cast<float>(clr_1.alpha())/255.f;
65 int r =static_cast<int>(static_cast<float>(clr_1.red())*(t)+static_cast<float>(clr_0.red())*(1.f-t)+0.5f);
66 int g =static_cast<int>(static_cast<float>(clr_1.green())*(t)+static_cast<float>(clr_0.green())*(1.f-t)+0.5f);
67 int b =static_cast<int>(static_cast<float>(clr_1.blue())*(t)+static_cast<float>(clr_0.blue()*(1.f-t))+0.5f);
68 int a =std::min(clr_0.alpha()+clr_1.alpha(), 255);
80 void IntelliTool::deleteToolLayer(){
void deleteLayer(int idx)
The deleteLayer method removes a layer at a given idx.
The PaintingArea class manages the methods and stores information about the current painting area,...
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.