다음을 통해 공유


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 하여 새 백 버퍼를 할당할 때 값이 변경됩니다.

적용 대상

추가 정보