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