1,420
社区成员
发帖
与我相关
我的任务
分享
func drawingImg(Imgs: UIImage){
UIGraphicsBeginImageContext(self.board.bounds.size)
let context = UIGraphicsGetCurrentContext()
UIColor.clear.setFill()
UIRectFill(self.board.bounds)
context?.saveGState()
context?.translateBy(x: 10, y: 400)
context?.scaleBy(x: 1, y: -1)
context?.draw(Imgs.cgImage!, in: CGRect(x: 100, y: 100, width: 200, height: 200))
context?.restoreGState()
}