Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
void RenderArea::addLayer(){
oldLayer = image;
layer.append(oldLayer);
QImage newLayer(image.size(),QImage::Format_ARGB32);
newLayer.fill(qRgba(0,255,255,68));
image = newLayer;
update();
}
void RenderArea::setLayer(int index)
{
image = layer[index];
update();
}
void RenderArea::mergeImage()
{
//レイヤー間の画像合成
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment