Gets or sets the maximum size of the buffer to use.
Assembly: System.Drawing (in System.Drawing.dll)
The height or width of the size is less than or equal to zero.
This property allows you to get or set the maximum dimensions for a buffer that should be retained in memory. You can allocate a buffer of any size, however any buffer with dimensions greater than the size will be used temporarily and then discarded when the BufferedGraphics object is released.
// Sets the maximum size for the graphics buffer // of the buffered graphics context. Any allocation // requests for a buffer larger than this will create // a temporary buffered graphics context to host // the graphics buffer. appDomainBufferedGraphicsContext.MaximumBuffer = new Size(400, 400);
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.