Back to Scottplot

Shared Assets

src/ScottPlot5/ScottPlot5 Sandbox/Sandbox.UnoPlatform/Assets/SharedAssets.md

5.1.581006 B
Original Source

Shared Assets

See documentation about assets here: https://github.com/unoplatform/uno/blob/master/doc/articles/features/working-with-assets.md

Here is a cheat sheet

  1. Add the image file to the Assets directory of a shared project.
  2. Set the build action to Content.
  3. (Recommended) Provide an asset for various scales/dpi

Examples

text
\Assets\Images\logo.scale-100.png
\Assets\Images\logo.scale-200.png
\Assets\Images\logo.scale-400.png

\Assets\Images\scale-100\logo.png
\Assets\Images\scale-200\logo.png
\Assets\Images\scale-400\logo.png

Table of scales

ScaleWinUIiOS/MacCatalystAndroid
100scale-100@1xmdpi
125scale-125N/AN/A
150scale-150N/Ahdpi
200scale-200@2xxhdpi
300scale-300@3xxxhdpi
400scale-400N/Axxxhdpi