CGContextSaveGState(gc);
CGContextTranslateCTM(gc, 0, rt.size.height);
CGContextScaleCTM(gc, 1.0, -1.0);
CGContextDrawImage(gc, rt, imgRef);
CGContextSetGrayFillColor(gc, 0.0, alpha);
CGContextRestoreGState(gc);
这段代码中,CGContextRestoreGState(gc)是用来回退context到初始状态的,它不会把我上面这些中间的绘图操作回退掉吗?所以这里的restoreGState是具体是什么意思?