Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The .NET Multi-platform App UI (.NET MAUI) Image displays an image that can be loaded from a local file, a URI, an embedded resource, or a stream. The standard platform image formats are supported, including animated GIFs, and local Scalable Vector Graphics (SVG) files are also supported. For more information about the Image control, see Image.
Any control that has a property of type ImageSource, can specify the source of an image. The ImageSource property has the following methods that can be used to load an image from different sources:
FromFilereturns aFileImageSourcethat reads an image from a local file.FromUrireturns anUriImageSourcethat downloads and reads an image from a specified URI.FromResourcereturns aStreamImageSourcethat reads an image file embedded in an assembly.FromStreamreturns aStreamImageSourcethat reads an image from a stream that supplies image data.
.NET MAUI Community Toolkit ImageSources
The .NET MAUI Community Toolkit provides a collection of additional pre-built, reusable ImageSources to make developers lives easier. Here are the sources provided by the toolkit:
| View | Description |
|---|---|
GravatarImageSource |
The GravatarImageSource provides an Image source to display a users Gravatar registered image via their email address. |
.NET MAUI Community Toolkit