BufferedGraphicsContext.MaximumBuffer Propriedade

Definição

Obtém ou define o tamanho máximo do buffer 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 Propriedade

A indica Size o tamanho máximo das dimensões do buffer.

Exceções

A altura ou largura do tamanho é menor ou igual a zero.

Exemplos

O exemplo seguinte demonstra definir o tamanho máximo do buffer para um BufferedGraphicsContext. Este código faz parte de um exemplo mais amplo fornecido para a BufferedGraphics turma.

// 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)

Observações

Esta propriedade permite-lhe obter ou definir as dimensões máximas para um buffer que deve ser mantido na memória. Pode alocar um buffer de qualquer tamanho, no entanto, qualquer buffer com dimensões superiores MaximumBuffer ao tamanho será usado temporariamente e depois descartado quando o BufferedGraphics objeto for libertado.

Aplica-se a

Ver também