Windows Dev Center

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.

ISurfaceImageSourceNativeWithD2D::BeginDraw method

Initiates an update to the associated SurfaceImageSource or VirtualSurfaceImageSource.

Syntax


HRESULT BeginDraw(
  [in]  REFRECT updateRect,
  [in]  REFIID  iid,
  [out] void    **updateObject,
  [out] POINT   *offset
);

Parameters

updateRect [in]

The region of the surface that will be drawn into.

iid [in]

IID used to lookup the object for drawing.

updateObject [out]

Receives a COM pointer to the drawing object. Based on iid, this may be either an IDXGISurface, when not using batched drawing, or a shared ID2D1DeviceContext, when using batched Direct2D drawing to improve performance when updating Direct2D content across multiple surfaces.

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.

Requirements

Minimum supported client

Windows 8.1 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 R2 [desktop apps | Windows Store apps]

Header

Windows.ui.xaml.media.dxinterop.h

IDL

Windows.ui.xaml.media.dxinterop.idl

DLL

Windows.UI.Xaml.dll

See also

ISurfaceImageSourceNativeWithD2D
SurfaceImageSource
VirtualSurfaceImageSource
DirectX and XAML interop

 

 

Community Additions

Show:
© 2015 Microsoft