1
Ich erstellte eine beschnittene Bitmap und jetzt möchte ich es speichern. Ich weiß, wie man einen Bitmapframe speichert, aber ich weiß nicht, wie man es in einen Bitmapframe umwandelt.So speichern Sie eine "CroppedBitmap"
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
Deshalb möchte ich das neue Bild als Datei speichern.
einige Ideen http://stackoverflow.com/questions/21275602/how-to-convert-a-croppedbitmap- Zu-Bitmap-Bild – Neolisk