mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
LibGfx+LibPDF: Apply subpixel offset in affine transformation
This commit is contained in:
parent
6c85088952
commit
eeb6072f15
6 changed files with 15 additions and 15 deletions
|
@ -18,15 +18,10 @@ public:
|
|||
void draw_path(Gfx::Path&);
|
||||
RefPtr<Gfx::Bitmap> accumulate();
|
||||
|
||||
void translate(Gfx::FloatPoint delta) { m_translation.translate_by(delta); }
|
||||
Gfx::FloatPoint translation() const { return m_translation; }
|
||||
|
||||
private:
|
||||
void draw_line(Gfx::FloatPoint, Gfx::FloatPoint);
|
||||
|
||||
Gfx::IntSize m_size;
|
||||
Gfx::FloatPoint m_translation;
|
||||
|
||||
Vector<float> m_data;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue