11 references to FromStream
System.Drawing.Common.Tests (5)
System\Drawing\BitmapTests.cs (3)
741using Image bitmapFromWmf = Image.FromStream(wmfStream); 745using Image expectedPngBitmap = Image.FromStream(expectedPngStream); 748using Image outputPngBitmap = Image.FromStream(outputPngStream);
System\Drawing\ImageTests.cs (2)
551AssertExtensions.Throws<ArgumentException>(null, () => Image.FromStream(stream)); 562AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => Image.FromStream(null));
System.Windows.Forms (3)
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (3)
478Image img = Image.FromStream(_localImageStreamReader.BaseStream); 487Image img = Image.FromStream(_uriImageStream); 623img = Image.FromStream(_tempDownloadStream!);
System.Windows.Forms.Design (2)
System\Drawing\Design\ImageEditor.cs (1)
168return Image.FromStream(memoryStream);
System\Windows\Forms\Design\ImageListImage.cs (1)
57return new ImageListImage((Bitmap)Image.FromStream(stream));
WindowsFormsIntegration (1)
System\Windows\Integration\HostUtils.cs (1)
297using (newImage = SD.Image.FromStream(memoryStream))