mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:17:35 +00:00
LibPDF: Implement color_rendering_intent operator
Implements the `ri` operator, and the `RI` key in a graphics state dictionary. We don't do anything yet with the color rendering intent except store it. No behavior change except removing a few "not yet implemented" messages.
This commit is contained in:
parent
609e640530
commit
708d5e2fe6
2 changed files with 10 additions and 2 deletions
|
@ -76,6 +76,7 @@ struct GraphicsState {
|
|||
RefPtr<ColorSpace> paint_color_space { DeviceGrayColorSpace::the() };
|
||||
Gfx::Color stroke_color { Gfx::Color::NamedColor::Black };
|
||||
Gfx::Color paint_color { Gfx::Color::NamedColor::Black };
|
||||
DeprecatedString color_rendering_intent { "RelativeColorimetric"sv };
|
||||
float flatness_tolerance { 0.0f };
|
||||
float line_width { 1.0f };
|
||||
LineCapStyle line_cap_style { LineCapStyle::ButtCap };
|
||||
|
@ -281,6 +282,7 @@ struct Formatter<PDF::GraphicsState> : Formatter<StringView> {
|
|||
builder.appendff(" ctm={}\n", state.ctm);
|
||||
builder.appendff(" stroke_color={}\n", state.stroke_color);
|
||||
builder.appendff(" paint_color={}\n", state.paint_color);
|
||||
builder.appendff(" color_rendering_intent={}\n", state.color_rendering_intent);
|
||||
builder.appendff(" flatness_tolerance={}\n", state.flatness_tolerance);
|
||||
builder.appendff(" line_width={}\n", state.line_width);
|
||||
builder.appendff(" line_cap_style={}\n", state.line_cap_style);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue