7 instantiations of ImageSource
Microsoft.AspNetCore.Components.Web.Tests (7)
Image\ImageTest.cs (7)
39var source = new ImageSource(PngBytes, "image/png", cacheKey: "png-1"); 56var s1 = new ImageSource(new byte[10], "image/png", cacheKey: "same"); 62var s2 = new ImageSource(new byte[20], "image/png", cacheKey: "same"); 99var s1 = new ImageSource(new byte[4], "image/png", "key-a"); 104var s2 = new ImageSource(new byte[6], "image/png", "key-b"); 120var s1 = new ImageSource(new byte[10], "image/png", "k1"); 126var s2 = new ImageSource(new byte[10], "image/png", "k2");
17 references to ImageSource
Microsoft.AspNetCore.Components.Web (10)
Image\Image.cs (7)
32private ImageSource? _currentSource; 48[Parameter, EditorRequired] public required ImageSource Source { get; set; } 66var previousSource = Source; 92var source = Source; 165private async Task LoadImage(ImageSource source, CancellationToken cancellationToken) 267private static bool HasSameKey(ImageSource? a, ImageSource? b)
Image\ImageSource.cs (3)
7/// Represents a single-use source for image data. An <see cref="ImageSource"/> corresponds to 35/// Initializes a new instance of <see cref="ImageSource"/> with byte array data. 52/// Initializes a new instance of <see cref="ImageSource"/> from an existing stream.
Microsoft.AspNetCore.Components.Web.Tests (7)
Image\ImageTest.cs (7)
39var source = new ImageSource(PngBytes, "image/png", cacheKey: "png-1"); 56var s1 = new ImageSource(new byte[10], "image/png", cacheKey: "same"); 62var s2 = new ImageSource(new byte[20], "image/png", cacheKey: "same"); 99var s1 = new ImageSource(new byte[4], "image/png", "key-a"); 104var s2 = new ImageSource(new byte[6], "image/png", "key-b"); 120var s1 = new ImageSource(new byte[10], "image/png", "k1"); 126var s2 = new ImageSource(new byte[10], "image/png", "k2");