34 references to ImageFormat
System.Drawing.Common (14)
System\Drawing\Image.cs (1)
510
return new
ImageFormat
(guid);
System\Drawing\ImageFormatConverter.cs (1)
43
return new
ImageFormat
(guid);
System\Drawing\Imaging\ImageFormat.cs (12)
17
private static readonly ImageFormat s_memoryBMP =
new
(PInvokeCore.ImageFormatMemoryBMP);
18
private static readonly ImageFormat s_bmp =
new
(PInvokeCore.ImageFormatBMP);
19
private static readonly ImageFormat s_emf =
new
(PInvokeCore.ImageFormatEMF);
20
private static readonly ImageFormat s_wmf =
new
(PInvokeCore.ImageFormatWMF);
21
private static readonly ImageFormat s_jpeg =
new
(PInvokeCore.ImageFormatJPEG);
22
private static readonly ImageFormat s_png =
new
(PInvokeCore.ImageFormatPNG);
23
private static readonly ImageFormat s_gif =
new
(PInvokeCore.ImageFormatGIF);
24
private static readonly ImageFormat s_tiff =
new
(PInvokeCore.ImageFormatTIFF);
25
private static readonly ImageFormat s_exif =
new
(PInvokeCore.ImageFormatEXIF);
26
private static readonly ImageFormat s_icon =
new
(PInvokeCore.ImageFormatIcon);
27
private static readonly ImageFormat s_heif =
new
(PInvokeCore.ImageFormatHEIF);
28
private static readonly ImageFormat s_webp =
new
(PInvokeCore.ImageFormatWEBP);
System.Drawing.Common.Tests (20)
System\Drawing\Imaging\ImageFormatTests.cs (20)
8
private static ImageFormat BmpImageFormat { get; } =
new
(new Guid("b96b3cab-0728-11d3-9d7b-0000f81ef32e"));
9
private static ImageFormat EmfImageFormat { get; } =
new
(new Guid("b96b3cac-0728-11d3-9d7b-0000f81ef32e"));
10
private static ImageFormat ExifImageFormat { get; } =
new
(new Guid("b96b3cb2-0728-11d3-9d7b-0000f81ef32e"));
11
private static ImageFormat GifImageFormat { get; } =
new
(new Guid("b96b3cb0-0728-11d3-9d7b-0000f81ef32e"));
12
private static ImageFormat TiffImageFormat { get; } =
new
(new Guid("b96b3cb1-0728-11d3-9d7b-0000f81ef32e"));
13
private static ImageFormat PngImageFormat { get; } =
new
(new Guid("b96b3caf-0728-11d3-9d7b-0000f81ef32e"));
14
private static ImageFormat MemoryBmpImageFormat { get; } =
new
(new Guid("b96b3caa-0728-11d3-9d7b-0000f81ef32e"));
15
private static ImageFormat IconImageFormat { get; } =
new
(new Guid("b96b3cb5-0728-11d3-9d7b-0000f81ef32e"));
16
private static ImageFormat JpegImageFormat { get; } =
new
(new Guid("b96b3cae-0728-11d3-9d7b-0000f81ef32e"));
17
private static ImageFormat WmfImageFormat { get; } =
new
(new Guid("b96b3cad-0728-11d3-9d7b-0000f81ef32e"));
18
private static ImageFormat HeifImageFormat { get; } =
new
(new Guid("{b96b3cb6-0728-11d3-9d7b-0000f81ef32e}"));
19
private static ImageFormat WebpImageFormat { get; } =
new
(new Guid("{b96b3cb7-0728-11d3-9d7b-0000f81ef32e}"));
20
private static ImageFormat CustomImageFormat { get; } =
new
(new Guid("48749428-316f-496a-ab30-c819a92b3137"));
85
yield return new object[] { new
ImageFormat
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new
ImageFormat
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), true };
86
yield return new object[] { new
ImageFormat
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new
ImageFormat
(new Guid("b96b3cad-0728-11d3-9d7b-0000f81ef32e")), false };
87
yield return new object[] { new
ImageFormat
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), null, false };
88
yield return new object[] { new
ImageFormat
(new Guid("48749428-316f-496a-ab30-c819a92b3137")), new(), false };
125
Assert.Equal(guid.GetHashCode(), new
ImageFormat
(guid).GetHashCode());