ImageGear .NET - Updated
DrawToCanvas(IImGearScrollableView,Canvas) Method




ImageGear24.Presentation Assembly > ImageGear.Display Namespace > ImGearPresentationPageDisplay Class > DrawToCanvas Method : DrawToCanvas(IImGearScrollableView,Canvas) Method
A Scrollable View object that defines image position.
Canvas object to draw the image in.
Draws an image in a Canvas.
Syntax
'Declaration
 
Public Overloads Sub DrawToCanvas( _
   ByVal pageView As IImGearScrollableView, _
   ByVal canvas As Canvas _
) 
'Usage
 
Dim instance As ImGearPresentationPageDisplay
Dim pageView As IImGearScrollableView
Dim canvas As Canvas
 
instance.DrawToCanvas(pageView, canvas)
public void DrawToCanvas( 
   IImGearScrollableView pageView,
   Canvas canvas
)
public: void DrawToCanvas( 
   IImGearScrollableView* pageView,
   Canvas* canvas
) 
public:
void DrawToCanvas( 
   IImGearScrollableView^ pageView,
   Canvas^ canvas
) 

Parameters

pageView
A Scrollable View object that defines image position.
canvas
Canvas object to draw the image in.
Remarks
An Image element is created and positioned within the canvas based on the pageView parameter. Dimensions of a bitmap in the result Image element (in pixels) are equal to dimensions of pageView (in WPF device independent units, 1/96th of an inch). This provides exact rendering of images when display uses the standard resolution of 96 DPI. If display resolution is different, or if the image is rendered for printing, use DrawToCanvas(IImGearScrollableView,Canvas,ImGearRenderSettings).
See Also

Reference

ImGearPresentationPageDisplay Class
ImGearPresentationPageDisplay Members
Overload List
IImGearScrollableView Interface