2

我想将一些代码从 iOS 更改为 Mac OS X,谁能给我一些提示

UIGraphicsBeginImageContext(CGSizeMake( width , height ));
[image drawInRect:CGRectMake(0, 0,width, height)];
image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();

UIGraphicsGetImageFromCurrentImageContext();

UIImageJPEGRepresentation(newImage, 0.75);

谢谢你。

4

1 回答 1

0

请参阅NSGraphicsContext 类参考

于 2013-01-23T07:27:48.693 回答