ImageGear for .NET
DrawToCanvas(IImGearScrollableView,Canvas,ImGearRenderSettings) Method
See Also  Send Feedback
ImageGear21.Presentation Assembly > ImageGear.Display Namespace > ImGearPresentationPageDisplay Class > DrawToCanvas Method : DrawToCanvas(IImGearScrollableView,Canvas,ImGearRenderSettings) Method




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.

Glossary Item Box

Draws an image in a Canvas. If ImGearPresentationPageDisplay class object contains annotations attached to it, the method optionally draws the annotations as well.

Syntax

 
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.

Remarks

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.

See Also

©2013. Accusoft Corporation. All Rights Reserved.