Draws the specified Windows.UI.Xaml.Media.Imaging.WriteableBitmap object at the specified location, adjusting the image size as specified by the and parameters.
Syntax
'Declaration
Public Overloads Function DrawElement( _
ByVal As Windows.UI.Xaml.FrameworkElement, _
ByVal As Windows.Foundation.Rect, _
ByVal As ContentAlignment, _
ByVal As Windows.UI.Xaml.Media.Stretch _
) As System.Threading.Tasks.Task
public System.Threading.Tasks.Task DrawElement(
Windows.UI.Xaml.FrameworkElement ,
Windows.Foundation.Rect ,
ContentAlignment ,
Windows.UI.Xaml.Media.Stretch
)
Parameters
- e
- Windows.UI.Xaml.FrameworkElement to render into the document.
- rc
- The rectangle structure that specifies the location of the drawn element, in points from the top left corner of the page.
- align
- ContentAlignment value that specifies how the element should be aligned within the rectangle.
- stretch
- Windows.UI.Xaml.Media.Stretch value that specifies how the element should be sized to fit the rectangle.
See Also