This repository was archived by the owner on May 1, 2024. It is now read-only.
[Question] Will drawing small svg icons with the new Drawing API will be faster then loading them from images? #12179
Unanswered
themronion
asked this question in
General
Replies: 1 comment
-
@jsuarezruiz can u give a small comment please? Just to know how to build my new project - by adding images the old way, or by drawing svgs? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Hey there, Xamarin team! I think this question is mostly for @jsuarezruiz since i have seen him doing a lot of work on the Drawing API. I am currently starting a new project and wondering whether i should give a try to using
Paths and Shapes
instead of loading svgs in my project, using https://github.com/Redth/ResizetizerNT to convert them to pngs and then use those icons asCachedImage
with https://github.com/luberda-molinet/FFImageLoading. What i want to do: create a folder called SVG in the shared project. Then in that folder create custom views - grids, for example Icon1, Icon2 - as described here: https://javiersuarezruiz.wordpress.com/2020/06/30/xamarin-forms-tips-and-tricks-working-with-shapes/. Then just use them in our code :<svg:Icon1/>
instead of<Image Source.....>
or<CachedImage Source..>
I have a suggestion that using the new API will be faster, but i have no idea how everything works under the hood. Specifically i am interested how paths will be rendered with bigCollectionViews and ListViews
- since they are considered as views will they be recycled and doing so they will be similarly cached asCachedImage
? Would be grateful for an answer! Thanks!Beta Was this translation helpful? Give feedback.
All reactions