https://bugs.freedesktop.org/show_bug.cgi?id=42386

             Bug #: 42386
           Summary: VG_DRAW_IMAGE_MULTIPLY does not work for alpha 1.0
    Classification: Unclassified
           Product: Mesa
           Version: git
          Platform: x86 (IA32)
        OS/Version: Windows (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
        AssignedTo: mesa-dev@lists.freedesktop.org
        ReportedBy: andreas.b...@elektrobit.com


If i draw an image with the image mode VG_DRAW_IMAGE_MULTIPLY the 
alpha value behaves strange.
If alpha value is 1.0f the image is invisible.
If i set the alpha value to e.g. 0.9999f then it is drawn correctly and can be
color transformed with VG_COLOR_TRANSFORM.

E.g. the following code:

        VGPaint colorPaint = vgCreatePaint();
        vgSeti(VG_IMAGE_MODE, VG_DRAW_IMAGE_MULTIPLY);
        VGfloat color[4] = {1.0f, 1.0f ,1.0f, 0.9999f};
        vgSetParameterfv(colorPaint, VG_PAINT_COLOR, 4, color);
        vgSetPaint(colorPaint, VG_FILL_PATH);
#ifdef OPENVG_VERSION_1_1
        vgSeti(VG_COLOR_TRANSFORM, VG_TRUE);
#endif
        vgDrawImage(m_image);

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to