简体   繁体   中英

How to change these UIs in iOS to Mac OS X

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.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM