4 writes to MaximumBuffer
System.Drawing.Common.Tests (4)
20 references to MaximumBuffer
System.Drawing.Common (3)
System.Drawing.Common.Tests (17)
System\Drawing\BufferedGraphicsContextTests.cs (15)
14Assert.Equal(new Size(225, 96), context.MaximumBuffer);
35using BufferedGraphics bufferedGraphics = context.Allocate(graphics, new Rectangle(0, 0, context.MaximumBuffer.Width - 1, context.MaximumBuffer.Height - 1));
47using BufferedGraphics bufferedGraphics = context.Allocate(graphics, new Rectangle(0, 0, context.MaximumBuffer.Width + 1, context.MaximumBuffer.Height + 1));
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)))
150Rectangle largeRectangle = new(0, 0, context.MaximumBuffer.Width + 1, context.MaximumBuffer.Height + 1);
165Rectangle largeRectangle = new(0, 0, context.MaximumBuffer.Width + 1, context.MaximumBuffer.Height + 1);
188Assert.Equal(new Size(10, 10), context.MaximumBuffer);
191Assert.Equal(new Size(255, 255), context.MaximumBuffer);