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