Editor plugin: SVG images

This commit is contained in:
Jakub Melka
2024-06-16 18:32:38 +02:00
parent 758e5fe7bb
commit c52e487b04
5 changed files with 268 additions and 0 deletions

View File

@ -168,6 +168,19 @@ QPainter::CompositionMode PDFBlendModeInfo::getCompositionModeFromBlendMode(Blen
return QPainter::CompositionMode_SourceOver;
}
BlendMode PDFBlendModeInfo::getBlendModeFromCompositionMode(QPainter::CompositionMode mode)
{
for (BlendMode blendMode : getBlendModes())
{
if (mode == getCompositionModeFromBlendMode(blendMode))
{
return blendMode;
}
}
return BlendMode::Normal;
}
QString PDFBlendModeInfo::getBlendModeName(BlendMode mode)
{
for (const std::pair<const char*, BlendMode>& info : BLEND_MODE_INFOS)