Share via


D3DImage.PixelHeight 속성

정의

D3DImage의 높이(픽셀)를 가져옵니다.

public:
 property int PixelHeight { int get(); };
public int PixelHeight { get; }
member this.PixelHeight : int
Public ReadOnly Property PixelHeight As Integer

속성 값

D3DImage의 높이(픽셀)입니다.

예제

다음 코드 예제를 사용 하는 방법에 설명 합니다 PixelHeight 속성을 백 버퍼에서 변경 된 영역을 지정 합니다. 자세한 내용은 연습: WPF에서 Direct3D9 콘텐츠 호스팅합니다.

d3dimg.Lock();
// Repeatedly calling SetBackBuffer with the same IntPtr is 
// a no-op. There is no performance penalty.
d3dimg.SetBackBuffer(D3DResourceType.IDirect3DSurface9, pSurface);
HRESULT.Check(Render());
d3dimg.AddDirtyRect(new Int32Rect(0, 0, d3dimg.PixelWidth, d3dimg.PixelHeight));
d3dimg.Unlock();

설명

의 값 PixelHeight 은 메서드를 호출하여 새 백 버퍼를 할당할 때 변경됩니다 SetBackBuffer .

적용 대상

추가 정보