5 references to Allocate
System.Drawing.Common.Tests (5)
System\Drawing\BufferedGraphicsContextTests.cs (4)
62using (BufferedGraphics bufferedGraphics = context.Allocate(hdc, Rectangle.Empty)) 84using (BufferedGraphics bufferedGraphics = context.Allocate(hdc, new Rectangle(0, 0, context.MaximumBuffer.Width - 1, context.MaximumBuffer.Height - 1))) 106using (BufferedGraphics bufferedGraphics = context.Allocate(hdc, new Rectangle(0, 0, context.MaximumBuffer.Width + 1, context.MaximumBuffer.Height + 1))) 123AssertExtensions.Throws<ArgumentException>(null, () => context.Allocate(-1, new Rectangle(0, 0, 10, 10)));
System\Drawing\BufferedGraphicsTests.cs (1)
72using BufferedGraphics bufferedGraphics = context.Allocate(hdc, new Rectangle(0, 0, 3, 3));