ImageGear PDF v25.2 - Updated
DrawToBitmapImage(IImGearScrollableView,BitmapImage) Method




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

Parameters

pageView
A Scrollable View object that defines image position.
bitmapImage
BitmapImage object to draw image in.
Remarks
This BitmapImage can then be used with various Source properties for certain UIElements. The method does not take into account display layout settings, such as orientation or alignment. The method does not draw annotations that are attached to the PageDisplay object. Use DrawToCanvas(IImGearScrollableView,Canvas) method to display an image taking into account layout settings, or to draw the image with annotations. Dimensions of result bitmap (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

Is this page helpful?
Yes No
Thanks for your feedback.