我想将一些代码从 iOS 更改为 Mac OS X,谁能给我一些提示
UIGraphicsBeginImageContext(CGSizeMake( width , height ));
[image drawInRect:CGRectMake(0, 0,width, height)];
image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
和
UIGraphicsGetImageFromCurrentImageContext();
和
UIImageJPEGRepresentation(newImage, 0.75);
谢谢你。