2012-07-10 10 views
1

내가 지금까지 많은 코드가없는, 오직이 시작얻기 잘못된 컨텍스트 오류

CGContextSaveGState(context); 

CGContextAddPath(context, highlightPath); 
CGContextSetFillColorWithColor(context, [[UIColor colorWithWhite:1.0 alpha:0.05]CGColor]); 
CGContextFillPath(context); 

CGContextRestoreGState(context); 
그 다음은

는 간단하다 :

UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); 

    UIGraphicsEndImageContext(); 
+0

어떻게 이미지 컨텍스트를 시작 했습니까? –

답변

1

이 중 하나를 경계 0,0,0,0가 또는 highlightP에 문제가있는 것 같습니다 ath. 이 값들은 어디서 오는 것입니까?