You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When loading an SVG you'll get a ImageSource which has a method called .maintain_aspect_ratio(true) but that does not work for SVG's
if i try to paint an svg with .paint_at the image will be scaled depending on the size of the specified rect.
i want the image to be painted inside that rect centered and keeping it's aspect ratio
Describe the solution you'd like
if .maintain_aspect_ratio(true) would work for svg's as well then that would be great
Describe alternatives you've considered
using a png instead but then i have to convert my svg's and have bigger file sizes
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When loading an SVG you'll get a ImageSource which has a method called
.maintain_aspect_ratio(true)
but that does not work for SVG'sif i try to paint an svg with
.paint_at
the image will be scaled depending on the size of the specified rect.i want the image to be painted inside that rect centered and keeping it's aspect ratio
Describe the solution you'd like
if
.maintain_aspect_ratio(true)
would work for svg's as well then that would be greatDescribe alternatives you've considered
using a png instead but then i have to convert my svg's and have bigger file sizes
The text was updated successfully, but these errors were encountered: