32 references to Guid
System.Drawing.Common.Tests (20)
System\Drawing\ImageFormatConverterTests.cs (5)
73
Assert.Throws<NotSupportedException>(() => _imgFmtConv.ConvertFrom(null, CultureInfo.InvariantCulture, ImageFormat.Bmp.
Guid
));
78
Assert.Throws<NotSupportedException>(() => _imgFmtConvFrmTD.ConvertFrom(null, CultureInfo.InvariantCulture, ImageFormat.Bmp.
Guid
));
112
Assert.Equal(testGuid, imageformat.
Guid
);
183
switch (iformat.
Guid
.ToString())
224
throw new InvalidOperationException($"Unknown GUID {iformat.
Guid
}.");
System\Drawing\ImageTests.cs (1)
649
ImageCodecInfo codec = codecs.Single(c => c.FormatID == format.
Guid
);
System\Drawing\Imaging\ImageCodecInfoTests.cs (1)
96
Assert.Equal(format.
Guid
, codecInfo.FormatID);
System\Drawing\Imaging\ImageFormatTests.cs (13)
26
yield return new object[] { BmpImageFormat.
Guid
, ImageFormat.Bmp };
27
yield return new object[] { EmfImageFormat.
Guid
, ImageFormat.Emf };
28
yield return new object[] { ExifImageFormat.
Guid
, ImageFormat.Exif };
29
yield return new object[] { GifImageFormat.
Guid
, ImageFormat.Gif };
30
yield return new object[] { TiffImageFormat.
Guid
, ImageFormat.Tiff };
31
yield return new object[] { PngImageFormat.
Guid
, ImageFormat.Png };
32
yield return new object[] { MemoryBmpImageFormat.
Guid
, ImageFormat.MemoryBmp };
33
yield return new object[] { IconImageFormat.
Guid
, ImageFormat.Icon };
34
yield return new object[] { JpegImageFormat.
Guid
, ImageFormat.Jpeg };
35
yield return new object[] { WmfImageFormat.
Guid
, ImageFormat.Wmf };
38
yield return new object[] { HeifImageFormat.
Guid
, ImageFormat.Heif };
39
yield return new object[] { WebpImageFormat.
Guid
, ImageFormat.Webp };
96
Assert.Equal(expectedGuid, imageFormat.
Guid
);
System.Windows.Forms (10)
System\Windows\Forms\Controls\ImageList\ImageList.cs (2)
691
if (result.RawFormat.
Guid
!= ImageFormat.Icon.
Guid
)
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (2)
147
if (_owner.UseTransparentColor && bitmap.RawFormat.
Guid
!= ImageFormat.Icon.
Guid
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (2)
1316
if (image.RawFormat.
Guid
!= ImageFormat.Icon.
Guid
)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (4)
1054
if (bmp.RawFormat.
Guid
!= ImageFormat.Icon.
Guid
&& !ImageAnimator.CanAnimate(bmp))
1091
if (currentImage.RawFormat.
Guid
!= ImageFormat.Icon.
Guid
&& !ImageAnimator.CanAnimate(currentImage))
WindowsFormsIntegration (2)
System\Windows\Integration\Convert.cs (2)
152
if (IntermediateFormat.
Guid
.CompareTo(SDI.ImageFormat.MemoryBmp.
Guid
) == 0)