Nabend, ich Drehe mit Matrix ein Bild. Jedoch möchte ich, das es nun auch nochmal Horizontal gespiegelt wird.
diese Funktion nutze ich im moment, Funktioniert auch, jedoch weiss ich nicht wie ich es jetzt noch spiegeln soll.
Grüße
VB.NET-Quellcode
- Public Function Rotate(ByVal Image As Image, ByVal Angle As Integer) As Image
- Dim bmp As New Bitmap(coverbreite, coverhoehe)
- Dim m As New Drawing2D.Matrix
- m.RotateAt(Angle, New PointF(CSng(coverbreite / 2), CSng(coverhoehe / 2)))
- With Graphics.FromImage(bmp)
- .Transform = m
- .DrawImage(Image, 0, 0)
- End With
- Return CType(bmp, Image)
- End Function
diese Funktion nutze ich im moment, Funktioniert auch, jedoch weiss ich nicht wie ich es jetzt noch spiegeln soll.
Grüße