I want change some codes from iOS to Mac OS X, can anyone give me some tips
UIGraphicsBeginImageContext(CGSizeMake( width , height ));
[image drawInRect:CGRectMake(0, 0,width, height)];
image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
and
UIGraphicsGetImageFromCurrentImageContext();
and
UIImageJPEGRepresentation(newImage, 0.75);
thank you.
请参见NSGraphicsContext类参考 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.