Top "Core-graphics" questions

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

Draw iOS 7-style squircle programmatically

I'm trying to find a way to draw a iOS 7-style icon 'squircle' shape programmatically, using core graphics. I'm not …

ios swift math core-graphics cgpath
How to detect where NaN is passing to CoreGraphics API on Mac OS X 10.9

I have very large graphic Mac app and now I receive a lot of the following messages in Console on 10.9 …

cocoa core-graphics osx-mavericks
Create Hexagon ImageView shape in iOS

I want Above Hexagon shape for my ImageView. But After implementing below code I am getting this Image - (UIBezierPath *)…

ios uiimageview uiimage core-graphics uibezierpath
cgcontext rotate rectangle

guys! I need to draw some image to CGContext.This is the relevant code: CGContextSaveGState(UIGraphicsGetCurrentContext()); CGContextRef ctx = UIGraphicsGetCurrentContext(); CGRect …

ios rotation core-graphics cgcontext rect
Understanding UIGraphicsGetCurrentContext()

I'm trying to understand Quartz and getting the context you have to draw on. If I have a function where …

ios uikit drawing core-graphics uigraphicscontext
Set a UIView scale transform without effecting other transforms

I have a UIView that I scale down when it is touched and scale back up when the touch is …

ios uiview core-graphics quartz-2d
iOS Core Graphics: Draw ONLY shadows of a CGPath

I am drawing a simple path in iOS 5 with Core Graphics: CGMutablePathRef path = CGPathCreateMutable(); CGPathMoveToPoint( path, NULL, center.x , topMargin ); …

objective-c ios core-graphics shadow cgpath
Applying transformed image layer to renderInContext:

Background I am using Erica Saduns Cookbook example from Chapter 8, Example 14 — Resize and Rotate to obviously resize and rotate a …

ios ipad core-graphics calayer layer
Using circular progress bar with masked image?

I am working on a circular progress bar for custom game center achievements view and I have kind of "hit …

objective-c core-graphics calayer drawrect
How to scale down an image in iOS, anti-aliased but not soft?

I have tried the UIImage+Resize category that's popular, and with varying interpolation settings. I have tried scaling via CG …

ios graphics ios5 core-graphics core-image