已在CGContextRef上绘制了一张图片:
CGContextDrawImage(context, CGRectMake(0, 0, width, height), image);
在另一个函数中,我想将图像移动到矩形中,如下所示:
CGRectMake(100, 100, width, height);
我该如何做?
void func(CGContextRef context)//there is just one parameter
{
//move the image
}