49 references to GdiCompatible
System.Drawing.Common (7)
System\Drawing\Imaging\Metafile.cs (6)
76
this(referenceHdc, frameRect, MetafileFrameUnit.
GdiCompatible
)
93
this(referenceHdc, frameRect, MetafileFrameUnit.
GdiCompatible
)
176
this(fileName, referenceHdc, frameRect, MetafileFrameUnit.
GdiCompatible
)
238
this(fileName, referenceHdc, frameRect, MetafileFrameUnit.
GdiCompatible
)
286
this(stream, referenceHdc, frameRect, MetafileFrameUnit.
GdiCompatible
)
310
this(stream, referenceHdc, frameRect, MetafileFrameUnit.
GdiCompatible
)
System\Drawing\Printing\PreviewPrintController.cs (1)
69
Imaging.MetafileFrameUnit.
GdiCompatible
,
System.Drawing.Common.Tests (42)
System\Drawing\Imaging\MetafileTests.cs (42)
197
yield return new object[] { MetafileFrameUnit.
GdiCompatible
};
292
yield return new object[] { (MetafileFrameUnit.
GdiCompatible
+ 1) };
323
new Metafile(referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
, emfType));
325
new Metafile(referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
, emfType, "description"));
328
new Metafile(referenceHdc, _rectangle, MetafileFrameUnit.
GdiCompatible
, emfType));
330
new Metafile(referenceHdc, _rectangle, MetafileFrameUnit.
GdiCompatible
, emfType, "description"));
480
using (Metafile metafile = new(fileName, g.GetHdc(), _rectangleF, MetafileFrameUnit.
GdiCompatible
, emfType))
498
fileName, g.GetHdc(), _rectangleF, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly, description))
516
fileName, g.GetHdc(), new RectangleF(), MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly, description))
564
using (Metafile metafile = new(fileName, g.GetHdc(), _rectangle, MetafileFrameUnit.
GdiCompatible
, emfType))
582
fileName, g.GetHdc(), _rectangle, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly, description))
600
fileName, g.GetHdc(), new Rectangle(), MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly, description))
615
AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero, _rectangleF, MetafileFrameUnit.
GdiCompatible
));
617
new Metafile(fileName, IntPtr.Zero, _rectangleF, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly));
619
new Metafile(fileName, IntPtr.Zero, _rectangleF, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly, "description"));
622
AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, IntPtr.Zero, _rectangle, MetafileFrameUnit.
GdiCompatible
));
624
new Metafile(fileName, IntPtr.Zero, _rectangle, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly));
626
new Metafile(fileName, IntPtr.Zero, _rectangle, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly, "description"));
661
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
, emfType));
663
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
, emfType, "description"));
666
new Metafile(fileName, referenceHdc, _rectangle, MetafileFrameUnit.
GdiCompatible
, emfType));
668
new Metafile(fileName, referenceHdc, _rectangle, MetafileFrameUnit.
GdiCompatible
, emfType, "description"));
680
new Metafile((string)null, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
));
682
new Metafile((string)null, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly));
684
new Metafile((string)null, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly, "description"));
697
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
));
699
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly));
701
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly, "description"));
713
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
));
715
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly));
717
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly, "description"));
749
using Metafile metafile = new(stream, g.GetHdc(), _rectangle, MetafileFrameUnit.
GdiCompatible
, emfType);
762
stream, g.GetHdc(), _rectangle, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly, description);
775
stream, g.GetHdc(), new Rectangle(), MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly, description);
785
AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(stream, IntPtr.Zero, _rectangle, MetafileFrameUnit.
GdiCompatible
));
787
new Metafile(stream, IntPtr.Zero, _rectangle, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly));
789
new Metafile(stream, IntPtr.Zero, _rectangle, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly, "description"));
816
new Metafile(stream, referenceHdc, _rectangle, MetafileFrameUnit.
GdiCompatible
, emfType));
818
new Metafile(stream, referenceHdc, _rectangle, MetafileFrameUnit.
GdiCompatible
, emfType, "description"));
828
Assert.Throws<ArgumentNullException>(() => new Metafile((Stream)null, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
));
830
new Metafile((Stream)null, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly));
832
new Metafile((Stream)null, referenceHdc, _rectangleF, MetafileFrameUnit.
GdiCompatible
, EmfType.EmfOnly, "description"));