Top "Core-graphics" questions

Core Graphics is Apple's framework for low-level drawing operations on Mac OS X and iOS.

iOS: what's the fastest, most performant way to make a screenshot programmatically?

in my iPad app, I'd like to make a screenshot of a UIView taking a big part of the screen. …

ios performance core-graphics graphicscontext quartz-core
Resize UIImage with aspect ratio?

I'm using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect …

ios iphone uiimage core-graphics
CABasicAnimation - transform scale keep in center

Trying to animatie an ellipse masked on a UIView to be scale transformed remaining in the center position. I have …

ios core-animation core-graphics mask catransform3d
UIView transparent gradient

Given an arbitrary UIView on iOS, is there a way using Core Graphics (CAGradientLayer comes to mind) to apply a "…

iphone ios core-graphics cagradientlayer
What's the difference between Quartz Core, Core Graphics and Quartz 2D?

I wonder if someone can distinguish precisely between these? For my understanding, Core Graphics is just a "Framework Package" which …

iphone core-graphics quartz-graphics quartz-2d
Draw segments from a circle or donut

I've been trying to figure out a way to draw segments as illustrated in the following image: I'd like to: …

ios core-animation core-graphics
Where and how to __bridge

I need some advice on __bridge-ing in iOS. Hopefully the SSCCE1 below will explain the problem better than I can …

ios objective-c memory-management core-graphics cgpath
How to merge two UIImages?

I am trying to merge two different images and create a new one. This is the way I would like …

ios swift uiimage core-graphics
How to compare two CGSize variables?

I want to make sure a CGSize is smaller or equal to another CGSize. like: CGSize firstSize = CGSizeMake(1.0,1.0); CGSize secondSize = …

objective-c cocoa-touch core-graphics
Turning an NSImage* into a CGImageRef?

Is there an easy way to do this that works in 10.5? In 10.6 I can use nsImage CGImageForProposedRect: NULL context: NULL …

objective-c cocoa core-graphics nsimage cgimage