I am stuck with the following problem:
I have an android Bitmap and a set of 4 coordinates, representing a rectangle. However, the rectangle may be rotated. For example I may have the coordinates 0/50, 50/0, 100/50, 50/100. Therefore I cannot simply use the Canvas drawBitmap(Bitmap bitmap, Rect src, RectF dst, Paint paint) function because I cannot specify such coordinates in a rect Object. What would be the best way to extract such a rectangle?