ISurfaceImageSourceNativeWithD2D::BeginDraw method

Initiates an update to the associated SurfaceImageSource or VirtualSurfaceImageSource.

Syntax

HRESULT BeginDraw(
  REFRECT updateRect,
  REFIID  iid,
  void    **updateObject,
  POINT   *offset
);

Parameters

updateRect

The region of the surface that will be drawn into.

iid

IID used to lookup the object for drawing.

updateObject

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

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 | UWP apps]
Minimum supported server Windows Server 2012 R2 [desktop apps | UWP apps]
Target Platform Windows
Header windows.ui.xaml.media.dxinterop.h
DLL Windows.UI.Xaml.dll

See Also

DirectX and XAML interop

ISurfaceImageSourceNativeWithD2D

SurfaceImageSource

VirtualSurfaceImageSource