Add support for the PDF blend mode operators.

This commit is contained in:
Fredrik Höglund 2009-07-15 00:16:08 +02:00
parent 2c5e931d5e
commit 533e22db30
2 changed files with 31 additions and 2 deletions

View file

@ -33,7 +33,7 @@ typedef XID PictFormat;
#define RENDER_NAME "RENDER" #define RENDER_NAME "RENDER"
#define RENDER_MAJOR 0 #define RENDER_MAJOR 0
#define RENDER_MINOR 10 #define RENDER_MINOR 11
#define X_RenderQueryVersion 0 #define X_RenderQueryVersion 0
#define X_RenderQueryPictFormats 1 #define X_RenderQueryPictFormats 1
@ -139,6 +139,27 @@ typedef XID PictFormat;
#define PictOpConjointXor 0x2b #define PictOpConjointXor 0x2b
#define PictOpConjointMaximum 0x2b #define PictOpConjointMaximum 0x2b
/*
* Operators only available in version 0.11
*/
#define PictOpBlendMinimum 0x30
#define PictOpMultiply 0x30
#define PictOpScreen 0x31
#define PictOpOverlay 0x32
#define PictOpDarken 0x33
#define PictOpLighten 0x34
#define PictOpColorDodge 0x35
#define PictOpColorBurn 0x36
#define PictOpHardLight 0x37
#define PictOpSoftLight 0x38
#define PictOpDifference 0x39
#define PictOpExclusion 0x3a
#define PictOpHSLHue 0x3b
#define PictOpHSLSaturation 0x3c
#define PictOpHSLColor 0x3d
#define PictOpHSLLuminosity 0x3e
#define PictOpBlendMaximum 0x3e
#define PolyEdgeSharp 0 #define PolyEdgeSharp 0
#define PolyEdgeSmooth 1 #define PolyEdgeSmooth 1

View file

@ -139,7 +139,11 @@ PICTOP { Clear, Src, Dst, Over, OverReverse, In, InReverse,
ConjointClear, ConjointSrc, ConjointDst, ConjointOver, ConjointClear, ConjointSrc, ConjointDst, ConjointOver,
ConjointOverReverse, ConjointIn, ConjointInReverse, ConjointOverReverse, ConjointIn, ConjointInReverse,
ConjointOut, ConjointOutReverse, ConjointAtop, ConjointOut, ConjointOutReverse, ConjointAtop,
ConjointAtopReverse, ConjointXor } ConjointAtopReverse, ConjointXor,
Multiply, Screen, Overlay, Darken, Lighten, ColorDodge,
ColorBurn, HardLight, SoftLight, Difference, Exclusion,
HSLHue, HSLSaturation, HSLColor, HSLLuminosity
}
SUBPIXEL { Unknown, HorizontalRGB, HorizontalBGR, SUBPIXEL { Unknown, HorizontalRGB, HorizontalBGR,
VerticalRGB, VerticalBGR, None VerticalRGB, VerticalBGR, None
} }
@ -1197,3 +1201,7 @@ what each version before 1.0 implemented:
The repeat picture attribute now supports Pad and The repeat picture attribute now supports Pad and
Reflect, older versions only supported None and Normal. Reflect, older versions only supported None and Normal.
0.11:
Blend mode operators