mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-14 20:30:32 +02:00
implemented creation of certain image type and alo button for setting poylgon data
TODO implement setPolygon function
This commit is contained in:
@@ -110,6 +110,13 @@ void PaintingArea::setLayerAlpha(int idx, int alpha){
|
||||
layerBundle[static_cast<size_t>(idx)].alpha=alpha;
|
||||
}
|
||||
}
|
||||
void PaintingArea::setPolygon(int idx){
|
||||
if(idx>=0&&idx<static_cast<int>(layerBundle.size())) {
|
||||
if(layerBundle[static_cast<size_t>(idx)].image->getTypeOfImage()==IntelliImage::ImageType::SHAPEDIMAGE){
|
||||
qDebug() << "Todo Implement here set Polygon";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Used to load the image and place it in the widget
|
||||
bool PaintingArea::open(const QString &filePath){
|
||||
|
||||
Reference in New Issue
Block a user