Re: [Pixman] Is circle rendering possible?

2019-02-06 Thread Bill Spitzak
If you are rendering a solid color (so the result is either that color or transparent black) then you can just fill the entire RGB with that color to turn the premulitplied output into unpremultiplied. However I am unsure what your precision problem is. You would have to composite several dozen

Re: [Pixman] Is circle rendering possible?

2019-02-06 Thread Indi Kernick
I thought pixman allowed you to choose between premultiplied and not premultiplied but I checked and apparently not. I think I'm getting my libraries mixed up. The problem I have with premultiplied alpha is that you lose precision when you have to un-premultiply. That's something I need in my

Re: [Pixman] Is circle rendering possible?

2019-02-06 Thread Pekka Paalanen
On Wed, 6 Feb 2019 19:25:48 +1030 Indi Kernick wrote: > The only problem I can find with Cairo is that it uses premultiplied alpha. Pixman uses premultiplied alpha. Also Wayland uses premultiplied alpha FWIW. I think you will find it quite common in general. > That's so annoying! Also, I'm not

Re: [Pixman] Is circle rendering possible?

2019-02-06 Thread Indi Kernick
The only problem I can find with Cairo is that it uses premultiplied alpha. That's so annoying! Also, I'm not sure if the Cairo renderer is GPU or CPU based. I'm using Qt to render the images. Qt can render surfaces so I can use pixman to manipulate a surface and then Qt to upload it to the GPU