
On 25-Apr-2015 18:19, Krzysztof KosiĆski wrote:
The reason for these is that Cairo and GDK-Pixbuf expect different pixel formats. Images need to be in Cairo format to do any compositing operations on them and display them on the screen, but they need to be in GDK-Pixbuf format when saving / loading them. One format can be converted to the other by swapping the R and B bytes.
Ah, I see, in cairo-utils.h there is a pixelformat() function to return PF_CAIRO or PF_GDK. I can work from there.
This leaves open the question of why and when the logic table for pixbuf format on this sort of "print" became this (where Y is either PF_CAIRO or PF_GDK, and N the other):
image fillimage gui Y Y cli Y N
Seems inconsistent to me.
Thanks,
David Mathog mathog@...1176... Manager, Sequence Analysis Facility, Biology Division, Caltech