

The process shown in the previous figure follows these steps: The following figure illustrates how base size affects an image: To stop a vector image from being resized, set the Resize attribute to false.

If you don't specify the base size for a vector-based app icon, such as an SVG file, the dimensions specified in the image are used as the base size. If you don't specify the base size for a bitmap-based app icon, such as a PNG file, the image isn't resized. The base size of your icon represents baseline density of the image, and is effectively the 1.0 scale factor that all other sizes are derived. The app icon is also used for different purposes, such as a store entry for your app or the icon used to represent the app after it's installed on a device. NET MAUI uses your icon across multiple platforms and devices, and attempts to resize the icon according for each platform and device. The foreground image ( ForegroundFile attribute) is optional. The background image ( Include attribute) must be specified for the item.

NET MAUI app icon can use any of the standard platform image formats, including Scalable Vector Graphics (SVG) files. By default, bitmap (non-vector) image formats aren't automatically resized by. This avoids having to manually duplicate and name the app icon on a per platform basis. At build time, this icon can be automatically resized to the correct resolution for the target platform and device, and added to your app package. NET Multi-platform App UI (.NET MAUI) app project, an app icon can be specified in a single location in your app project. On Windows, the app icon appears in the app list in the start menu, the taskbar, the app's tile, and in the Microsoft Store. On Android, the app icon appears as a launcher icon and throughout the system, such as on the action bar, notifications, and in the Google Play Store. For example, on iOS the app icon appears on the Home screen and throughout the system, such as in Settings, notifications, and search results, and in the App Store. Every app has a logo icon that represents it, and that icon typically appears in multiple places.
