Determines how the bit values for the source pixels are combined with
the bit values for destination pixels to produce the final result. The
sixteen values here correspond to the 16 different possible 2x2 truth
tables. Only a couple of these values are usually useful; for colored
images, only GDK_COPY, GDK_XOR and GDK_INVERT are generally
useful. For bitmaps, GDK_AND and GDK_OR are also useful.
GDK_COPY
dst = src
GDK_INVERT
dst = NOT dst
GDK_XOR
dst = src XOR dst
GDK_CLEAR
dst = 0
GDK_AND
dst = dst AND src
GDK_AND_REVERSE
dst = src AND (NOT dst)
GDK_AND_INVERT
dst = (NOT src) AND dst
GDK_NOOP
dst = dst
GDK_OR
dst = src OR dst
GDK_EQUIV
dst = (NOT src) XOR dst
GDK_OR_REVERSE
dst = src OR (NOT dst)
GDK_COPY_INVERT
dst = NOT src
GDK_OR_INVERT
dst = (NOT src) OR dst
GDK_NAND
dst = (NOT src) OR (NOT dst)
GDK_NOR
dst = (NOT src) AND (NOT dst)
GDK_SET
dst = 1
Determines how the bit values for the source pixels are combined with the bit values for destination pixels to produce the final result. The sixteen values here correspond to the 16 different possible 2x2 truth tables. Only a couple of these values are usually useful; for colored images, only GDK_COPY, GDK_XOR and GDK_INVERT are generally useful. For bitmaps, GDK_AND and GDK_OR are also useful. GDK_COPY dst = src GDK_INVERT dst = NOT dst GDK_XOR dst = src XOR dst GDK_CLEAR dst = 0 GDK_AND dst = dst AND src GDK_AND_REVERSE dst = src AND (NOT dst) GDK_AND_INVERT dst = (NOT src) AND dst GDK_NOOP dst = dst GDK_OR dst = src OR dst GDK_EQUIV dst = (NOT src) XOR dst GDK_OR_REVERSE dst = src OR (NOT dst) GDK_COPY_INVERT dst = NOT src GDK_OR_INVERT dst = (NOT src) OR dst GDK_NAND dst = (NOT src) OR (NOT dst) GDK_NOR dst = (NOT src) AND (NOT dst) GDK_SET dst = 1