Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ISurfaceImageSourceNative::BeginDraw method

Opens the supplied DXGI surface for drawing.

Syntax


HRESULT BeginDraw(
  [in]   RECT updateRect,
  [out]  IDXGISurface **pSurface,
  [out]  POINT *offset
);

Parameters

updateRect [in]

The region of the surface that will be drawn into.

pSurface [out]

Receives a pointer to the surface for drawing.

offset [out]

Receives the point (x,y) offset of the surface that will be drawn into.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

If the app window that contains the SurfaceImageSource isn't active, like when it's suspended, calling the BeginDraw method returns an error.

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Header

Windows.ui.xaml.media.dxinterop.h

IDL

Windows.ui.xaml.media.dxinterop.idl

DLL

Windows.UI.Xaml.dll

See also

ISurfaceImageSourceNative
IDXGISurface
DirectX and XAML interop

 

 

Community Additions

Show:
© 2014 Microsoft