I created a cropped Bitmap and now i want to save it. I know how to save a bitmapframe, but i dont know how to convert it to a bitmapframe.
Code:
' Create an Image element.
Dim croppedImage As New Image()
croppedImage.Width = 200
croppedImage.Margin = New Thickness(5)
' Create a CroppedBitmap based off of a xaml defined resource.
Dim cb As New CroppedBitmap(CType(screenshot, BitmapSource), New Int32Rect(X, Y, breite, höhe))
'select region rect
croppedImage.Source = cb 'set image source to cropped
So I want to save the new Image as file.