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