SKIA Draw Image with alpha (Edges around colors not transparent)

585 views
Skip to first unread message

jam7...@gmail.com

unread,
Apr 1, 2016, 4:17:14 AM4/1/16
to skia-discuss
I have a problem with SKIA drawing images:
I have a 32 bit image with transparent background, the problem is when rendering this image the edges of colored pixels in this image doesn't rendered correclty (See the grey color around the edges oc the ovals), attached is how this image rendered with SKIA, it should be without these grey edges.

Note: I don't draw the ovals, these are from the original image.

I appreciate your help.
Thanks.
RES.png

Mike Reed

unread,
Apr 1, 2016, 8:19:27 AM4/1/16
to skia-d...@googlegroups.com
Hard to know w/o more information.

Can you reproduce the drawing with a fiddle? https://fiddle.skia.org/

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To post to this group, send email to skia-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/skia-discuss.
For more options, visit https://groups.google.com/d/optout.

jam7...@gmail.com

unread,
Apr 1, 2016, 3:35:21 PM4/1/16
to skia-discuss
Unfortunately I couldn't, but it's not 100% the same, my sample is very complicated ; converting buffer image to skia canvas, then draw on it (Shapes, text and images)...etc

Anyway, seems when setting the xfermode to kDarken_Mode solve the problem, but make it crash on other samples.

Marco

unread,
Apr 4, 2016, 8:06:30 AM4/4/16
to skia-discuss
Some bugs were recently fixed in alpha handling.

Not saying it will fix your problem (also because you didn't post the code) but you might want to try with a more recent version. Good luck.
Reply all
Reply to author
Forward
0 new messages