Description[PDF] Add support for Shaders.
- Shaders, or as they are referred to in PDF, patterns, are drawn in the coordinate system of the initial page, so when we canonicalize them, we have to consider the current transform and where they are constructed.
- Image shaders are tiled by default, this makes repeat and mirror modes easy, but means we have to draw a pattern as large as the current clip to support clamp mode.
- Gradient shaders are implemented with type 4 functions, which are basically small snippets of post script code. I've tried to make the code generation modular and heavily commented to make it easy to understand or expand.
Committed: http://code.google.com/p/skia/source/detail?r=905
Patch Set 1 #
Total comments: 14
Patch Set 2 : Address comments. #Patch Set 3 : Address comments (rest). #
Total comments: 2
MessagesTotal messages: 11
|