IPrintPreviewDxgiPackageTarget::DrawPage method

Updates the content of the specified page in the print preview window.

Syntax


HRESULT DrawPage(
  [in]  UINT32 jobPageNumber,
  [in]  IDXGISurface *pageImage,
  FLOAT dpiX,
  FLOAT dpiY
);

Parameters

jobPageNumber [in]

The page number of the preview content to update.

pageImage [in]

The DXGI surface that contains the preview content.

dpiX

The horizontal resolution in DPI that was used to generate the DXGI surface referenced by pageImage.

dpiY

The vertical resolution in DPI that was used to generate the DXGI surface referenced by pageImage.

Return value

If the DrawPage method completes successfully, it returns an S_OK. Otherwise it returns the appropriate HRESULT error code.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Header

PrintPreview.h

See also

IPrintPreviewDxgiPackageTarget

 

 

Send comments about this topic to Microsoft

Build date: 10/12/2013

Community Additions

Show: