Top "Core-graphics" questions

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

Subtract CGRect from CGRect -- largest piece of one not containing the other

How I can substract one CGRect from another? I want the result R1 - R2 to be the largest subrectangle …

objective-c geometry core-graphics cgrect
How to get actual pdf page size in iPad?

How can I get PDF page width and height in iPad? Any document or suggestions on how I can find …

iphone ipad pdf core-graphics cgpdfdocument
NSImage size not real size with some pictures?

I see that sometimes NSImage size is not real size (with some pictures) and CIImage size is always real. I …

macos cocoa core-graphics nsimage
iOS Drawing text in the centre of shapes

I'm trying to draw text in the centre of shapes in iOS, an example would be Microsoft Office's insert shape …

ios core-graphics core-text textkit
Core Graphics Performance on iOS

Summary I'm working on a fairly straightforward 2D tower defense game for iOS. So far, I've been using Core Graphics …

iphone ios performance core-graphics quartz-2d
draw outside of UIView's bounds from drawRect

My question is very similar to this one Not drawing outside bounds when clipToBounds=NO which received no clear answer. …

iphone objective-c core-graphics drawrect
iOS to Mac GraphicContext Explanation/Conversion

I have been programming for two years on iOS and never on mac. I am working on a little utility …

ios macos core-graphics converter cgcontext
What's the difference and compatibility of CGLayer and CALayer?

I'm confusing CGLayer and CALayer. They look similar, so why are there separate implementations? What's the difference between, and compatibility …

cocoa core-graphics calayer cglayer
iOS " current graphics context" - What is that

When I draw lines and shapes etc I get the " current graphics context" in iOS. What exactly though is " current …

ios core-graphics uigraphicscontext graphicscontext uigraphicsimagerenderer
IOS : Animate transformation from a line to a bezier curve

I would like to animate a straight line curving into a bezier curve (from "_" to "n"), is there a library …

ios core-graphics bezier uibezierpath nsbezierpath