How to draw a bitmap to another, but into a given quadrilateral (not necessary a rectangle)?
- 阅读更多 关于 How to draw a bitmap to another, but into a given quadrilateral (not necessary a rectangle)?
Suppose I have 2 bitmaps. One is smallBitmap, and one is largeBitmap. I want to draw the entire smallBitmap into largeBitmap, but only to a part of largeBitmap, and not in a straight regtangle, but into a quadrilateral instead. I think a sketch will best describe what I mean: An example of this scenario is a tilted smartphone image (like this or this ), that you need to put a screenshot into its screen. The input is: smallBitmap, largeBitmap, "quadrilateral" coordinates of the largeBitmap (where to put the smallBitmap). The "quadrilateral" of the largeBitmap just has 4 coordinates and it's not