17 this->deleteToolLayer();
28 this->createToolLayer();
35 this->mergeToolLayer();
36 this->deleteToolLayer();
46 void IntelliTool::createToolLayer(){
47 Area->createTempLayerAfter(
Area->activeLayer);
52 void IntelliTool::mergeToolLayer(){
59 float t = static_cast<float>(clr_1.alpha())/255.f;
60 int r =static_cast<int>(static_cast<float>(clr_1.red())*(t)+static_cast<float>(clr_0.red())*(1.f-t)+0.5f);
61 int g =static_cast<int>(static_cast<float>(clr_1.green())*(t)+static_cast<float>(clr_0.green())*(1.f-t)+0.5f);
62 int b =static_cast<int>(static_cast<float>(clr_1.blue())*(t)+static_cast<float>(clr_0.blue()*(1.f-t))+0.5f);
63 int a =std::min(clr_0.alpha()+clr_1.alpha(), 255);
74 void IntelliTool::deleteToolLayer(){