https://bugs.kde.org/show_bug.cgi?id=423465

            Bug ID: 423465
           Summary: Wrong rendering when using "Destination Atop" blending
                    mode
           Product: krita
           Version: git master
          Platform: Compiled Sources
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: General
          Assignee: krita-bugs-n...@kde.org
          Reporter: gin...@gmail.com
  Target Milestone: ---

Created attachment 129655
  --> https://bugs.kde.org/attachment.cgi?id=129655&action=edit
test image

The destination atop compositing op seems to mix the colors wrong with some
artifacts in some cases.

Attached is a test image file.

STEPS TO REPRODUCE
1. Paint something in a transparent layer.
2. Paint something else a different color in another transparent layer on top
of the previous, overlaping the two shapes.
3. Choose "Destination Atop" blending mode on the layer on top.

OBSERVED RESULT
Sample image: https://imgur.com/a/tcIngTC

EXPECTED RESULT
The artifacts shouldn't appear

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.15.0

ADDITIONAL INFORMATION
I looked at the code and think this could be fixed by modifying the file
libs/pigment/compositeops/KoCompositeOpDestinationAtop.h
Changing lines 61 and 62:
channels_type srcMult= mul(src[channel], appliedAlpha);
dst[channel] = lerp(srcMult,dst[channel],dstAlpha);
by:
dst[channel] = lerp(src[channel],dst[channel],dstAlpha);
seems to solve the problem

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to