Commit graph

3 commits

Author SHA1 Message Date
Hermet Park
39b0f87cb3 api: revise the canvas update() API
Removed the paint parameter previously used to forcibly
update a single paint.

This behavior was unsafe in ThorVG, as a single paint
object may be connected to others through the scene graph.

Now, the canvas engine is responsible for properly updating
all damaged paints as needed, allowing the user to simply
call update() in any case.

API Modifications:

C++ API:
 * Result Canvas::update(Paint* paint) -> Result Canvas::update()

CAPI:
 - tvg_canvas_update_paint()

Issue: https://github.com/thorvg/thorvg/issues/3116
2025-06-16 10:43:13 +09:00
Hermet Park
97b48a97c1 examples: polished for a sleek initial screen appearance 2025-03-06 19:07:38 +09:00
Hermet Park
e2f1557de5 examples: chores++
- removed AnimatedMasking.
- unified ImageScaleUp/Down.
- build GifSaver only gif_saver is enabled.
2025-03-05 23:25:06 +09:00
Renamed from examples/ImageScaleDown.cpp (Browse further)