Skip to content

Conversation

wqmeng
Copy link

@wqmeng wqmeng commented Aug 23, 2025

Hello,
Recently, I've been trying to add some common features for SVG images.
I've added support for flipping in function DrawImage.
I've tried using the path bounds to set the viewbox rectangle, which allows all paths to be displayed within the SVG window, which may help resolve some viewbox issues. I've also made KeepAspectRatio configurable, with a default of true.

Hopefully, this feature will be added to the master branch.

For a demo, please have a look of the
https://github.com/wqmeng/SVGIconImageList/tree/center_all_paths

The demo SvgViewer which shows the features of the VCL framework. And also the SVGIconImageList added FMX support for the above features too.

Thanks so much.

…the paths show in the SVG window which may help to resolve some ViewBox problem.

Get the KeepAspectRatio to be configurable, and default is true.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant