Advertisement
Intermediate .NET MAUI, Fonts, Icons & Media

How do you handle different image resolutions across devices?

Short answer

Provide a single high-resolution source (SVG preferred) declared as MauiImage; MAUI generates density-appropriate rasters at build time.

Save .NET MAUI mock interview
Advertisement
AModel answer
Provide a single high-resolution source (SVG preferred) declared as MauiImage; MAUI generates density-appropriate rasters at build time. For platform-specific art, you can still supply per-density files, but SVG plus MauiImage resizing covers most cases and keeps the project lean.
<MauiImage Include="Resources\Images\logo.svg" BaseSize="120,120" />
Real-world example
One logo.svg yields crisp images on low-density phones and high-density tablets without shipping multiple bitmaps.
Likely follow-ups
  • Why prefer SVG? | What does BaseSize control?
Related topics