diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-08-11 17:38:35 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-08-14 11:30:40 +0200 |
commit | 389f1ee6f54a089aa9b7b0618ed477f8a7cfd4c1 (patch) | |
tree | ab6296353428fce9130e7387d399d5eda25dae75 /Userland/Libraries/LibGfx/Path.h | |
parent | 2ec52bbbd57cabf56ec2f5b61e3846640c358146 (diff) | |
download | serenity-389f1ee6f54a089aa9b7b0618ed477f8a7cfd4c1.zip |
LibGfx: Add method for copying a Path with a transform applied
The Web's CanvasRenderingContext2D needs a way to draw a path with a
transform applied to it, without modifying the original path, so here
it is. :^)
Diffstat (limited to 'Userland/Libraries/LibGfx/Path.h')
-rw-r--r-- | Userland/Libraries/LibGfx/Path.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/Path.h b/Userland/Libraries/LibGfx/Path.h index 7c0ba83090..662edb3732 100644 --- a/Userland/Libraries/LibGfx/Path.h +++ b/Userland/Libraries/LibGfx/Path.h @@ -243,6 +243,8 @@ public: return m_bounding_box.value(); } + Path copy_transformed(AffineTransform const&) const; + String to_string() const; private: |