ComponentOne PDF for WPF and Silverlight
DrawImage(WriteableBitmap,Rect) Method
Example 

C1.Silverlight.Pdf.5 Assembly > C1.Silverlight.Pdf Namespace > C1PdfDocument Class > DrawImage Method : DrawImage(WriteableBitmap,Rect) Method
System.Windows.Media.Imaging.WriteableBitmap object to draw.
System.Windows.Rect structure that specifies the location of the drawn image, in points from the top left corner of the page.
Draws the specified System.Windows.Media.Imaging.WriteableBitmap object at the specified location, stretching it to fit the destination rectangle.
Syntax
'Declaration
 
Public Overloads Sub DrawImage( _
   ByVal img As WriteableBitmap, _
   ByVal rc As Rect _
) 
public void DrawImage( 
   WriteableBitmap img,
   Rect rc
)

Parameters

img
System.Windows.Media.Imaging.WriteableBitmap object to draw.
rc
System.Windows.Rect structure that specifies the location of the drawn image, in points from the top left corner of the page.
Example
The code below shows how you can use the DrawImage method can be used to render any System.Windows.UIElement. The code creates a System.Windows.Media.Imaging.WriteableBitmap from the element, then calls the DrawImage method:
void DrawImage(UIElement e, Rect rc)
{
  DrawImage(new WriteableBitmap(e, null), rc);
}
See Also

Reference

C1PdfDocument Class
C1PdfDocument Members
Overload List