Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- pageView
- A Scrollable View object that defines image position.
- canvas
- Canvas object in which to draw the image.
- renderSettings
- Specifies rendering settings, such as scale mode and resolution.
An Image element is created and positioned within the canvas based on the pageView parameter. The method supports passing specific resolution for rendering, or scaling the image with the help of the WPF engine.
When using this method for printing, the application shall explicitly call Measure and Arrange methods of the canvas after calling the DrawToCanvas
method and before calling PrintDialog.PrintVisual method or XpsDocumentWriter.Write method.