BufferedGraphicsContext.MaximumBuffer Propiedad

Definición

Obtiene o establece el tamaño máximo del búfer que se va a usar.

public:
 property System::Drawing::Size MaximumBuffer { System::Drawing::Size get(); void set(System::Drawing::Size value); };
public System.Drawing.Size MaximumBuffer { get; set; }
member this.MaximumBuffer : System.Drawing.Size with get, set
Public Property MaximumBuffer As Size

Valor de propiedad

Un valor de Size que indica el tamaño máximo del búfer.

Excepciones

El alto o ancho es menor o igual que cero.

Ejemplos

En el ejemplo siguiente se muestra cómo establecer el tamaño máximo del búfer para .BufferedGraphicsContext Este código forma parte de un ejemplo más grande proporcionado para la BufferedGraphics clase .

// 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 = System::Drawing::Size( 400, 400 );
// 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);
' 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)

Comentarios

Esta propiedad permite obtener o establecer las dimensiones máximas de un búfer que se debe conservar en la memoria. Puede asignar un búfer de cualquier tamaño, pero cualquier búfer con dimensiones mayores que el MaximumBuffer tamaño se usará temporalmente y, a continuación, se descartará cuando se libere el BufferedGraphics objeto.

Se aplica a

Consulte también