Hi there.<br><br>I&#39;m writing a small app kind of like Paint, and using images as brushes; these images are transparent PNGs with white as the brush color, and the color is multiplied in the code to the color selected in a color picker, with transparency being applied in PaintWithAlpha.<br>

<br>This problem is generic to cairo and not the API I&#39;m using, hence why I&#39;m posting here.<br><br>Because cairo pre-multiplies the colors, it is obvious to expect that any transparency would be multiplied into black; this makes sense to me, however, with my understanding of pre-multiplied alpha, it is un-multiplied by the rendering API so that it renders alpha properly. This appears not to be the case, as all of my images render with an ugly black outline which destroys alpha blending and creates &quot;streaks&quot; across the program.<br>

<br>Here is the image being used as a brush, and the image that is outputted by Cairo after loading:<br><a href="http://alteredsoftworks.com/cairo/circle.png">http://alteredsoftworks.com/cairo/circle.png</a><br><a href="http://alteredsoftworks.com/cairo/test.png">http://alteredsoftworks.com/cairo/test.png</a><br>

<br>Does anyone have any experience with this sort of issue that they can tell me what the problem is or how to combat it?<br><br>The streaking is barely visible when any combination of color values containing 128, 255 or 0 are used; however, if you review the drawn data, the color does in fact vary by usually 1 or 2 points in certain spots, in around where the brushes were drawn.<br>

<br>Here&#39;s a screenshot of a canvas being manipulated by a scaled-up brush (5x the size of circle.png); you can see the streaks on the background green strokes, as well as a constant blue circle being drawn in the center to highlight the issue.<br>

<br><a href="http://alteredsoftworks.com/cairo/canvas.png">http://alteredsoftworks.com/cairo/canvas.png</a><br><br>-P<br>