Draw UIImage in context with perspective?
I have a UIImage that is a square. When drawing in context, I do:
UIGraphicsBeginImageContextWithOptions(imageView.image!.size, imageView.opaque, 0.0)
//context
var drawCtxt = UIGraphicsGetCurrentContext()
var someImage = UIImage(...)
// draw the image
CGContextDrawImage(drawCtxt, imageRect, someImage!.CGImage)
I want to draw an image in perspective like this:
How can I draw the UIImage in context in perspective?
+3
source to share
No one has answered this question yet
Check out similar questions: