Top "Core-graphics" questions

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

Core Image CIColorControls brightness filter creates wrong effect. How do I change my image's luminance?

I'm creating a color picker for iOS. I would like to enable the user to select the brightness (luminance) and …

ios ios5 graphics core-graphics core-image
CTFramesetterSuggestFrameSizeWithConstraints sometimes returns incorrect size?

In the code below, CTFramesetterSuggestFrameSizeWithConstraints sometimes returns a CGSize with a height that is not big enough to contain all …

iphone xcode core-graphics core-text
Making a pie chart using Core Graphics

So far I have a filled in circle and that's about it. I'm trying to make a pie chart that …

ios swift core-graphics
How to Animate CoreGraphics Drawing of Shape Using CAKeyframeAnimation

I am trying to animate the drawing of a UIBeizerPath (in my example a triangle) in a UIView subclass. However, …

uiview core-animation core-graphics cakeyframeanimation
Rotate UIImageView clockwise

This should be simple, but I'm having trouble rotating a UIImageView a full 360 degrees, repeated forever. [UIView animateWithDuration:0.5 delay:0 options:…

objective-c ios core-graphics transform cgaffinetransform
How to debug an overloading backboardd?

I have a UIView with several instances of a subclassed CAShapeLayer added as sublayers to its layer property. I am …

ios core-graphics instruments
drawRect on top of subviews

I have subclassed UIView and added a drawRect method to it. Then I define a view using this custom class …

ios core-graphics drawrect z-order
CAKeyframeAnimation delay before repeating

I have a CAKeyframeAnimation animation that I would like to repeat forever using repeatCount = HUGE_VALF. The animation's duration is 2 …

iphone ios core-animation core-graphics
Rotate image using CGContextDrawImage

How can I rotate an image drawn by CGContextDrawImage() at its center? In drawRect: CGContextSaveGState(c); rect = CGRectOffset(rect, -rect.…

ios core-graphics cgcontext cgaffinetransform cgcontextdrawimage
What does CGColorGetComponents() return?

CGFloat* colors = CGColorGetComponents(hsbaColor.CGColor); Does this return a float, or an array of floats? It looks like the asterisk …

iphone cocoa-touch core-graphics uicolor cgcolor