BufferedGraphicsContext.MaximumBuffer Propriedade

Definição

Obtém ou define o tamanho máximo do buffer a ser usado.

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 da propriedade

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

Exceções

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

Exemplos

O exemplo a seguir demonstra a configuração do tamanho máximo do buffer para um BufferedGraphicsContext. Esse código faz parte de um exemplo maior fornecido para a BufferedGraphics classe .

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

Comentários

Essa propriedade permite que você obtenha ou defina as dimensões máximas para um buffer que deve ser retido na memória. Você pode alocar um buffer de qualquer tamanho, no entanto, qualquer buffer com dimensões maiores que o MaximumBuffer tamanho será usado temporariamente e, em seguida, descartado quando o BufferedGraphics objeto for liberado.

Aplica-se a

Confira também