Share via


BufferedGraphicsContext.MaximumBuffer 속성

정의

사용할 버퍼의 최대 크기를 가져오거나 설정합니다.

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

속성 값

버퍼의 최대 크기를 나타내는 Size입니다.

예외

크기의 높이나 너비가 0보다 작거나 같은 경우

예제

다음 예제에서는 버퍼의 최대 크기를 설정하는 방법을 보여 줍니다 BufferedGraphicsContext. 이 코드는 클래스에 대해 제공되는 더 큰 예제의 BufferedGraphics 일부입니다.

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

설명

이 속성을 사용하면 메모리에 유지되어야 하는 버퍼의 최대 크기를 얻거나 설정할 수 있습니다. 모든 크기의 버퍼를 할당할 수 있지만 크기보다 MaximumBuffer 큰 버퍼는 일시적으로 사용된 다음 개체가 해제될 때 BufferedGraphics 삭제됩니다.

적용 대상

추가 정보