I need to draw an image in mac os project. In iOS I can do this using UIGraphicsBeginImageContext.
Please give me an example, how to draw image in mac os or give an analog of UIGraphicsBeginImageContext api.
I need to draw an image in mac os project. In iOS I can
Share
If you are trying to draw into an NSImage, you’ll want:
From the Cocoa drawing documentation.