forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibPDF: Implement painting of axial shadings
Or, as they're called elsewhere, linear gradients. Since this uses PDF function objects and PDF color spaces, it can't use the existing gradient code in LibGfx. The way shadings are drawn with the `sh` operator is that one sets a clip path that's to be filled with the shading and the calls the `sh` operator. However, we only support clip rects at the moment, not yet arbitrary clip paths. So this leads to rectangles with linear gradients appearing, which sometimes can overlap other page elements. This will improve once we implement support for arbitrary clip paths. This is also still missing support for the optional additional /BBox shading dict entry, which further constrains the clip rect.
- Loading branch information
Showing
3 changed files
with
65 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters