Top "Core-graphics" questions

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

How to scale down a UIImage and make it crispy / sharp at the same time instead of blurry?

I need to scale down an image, but in a sharp way. In Photoshop for example there are the image …

ios image uikit core-graphics scaling
Extracting rgb from UIColor

Seen this asked before but my example does not seem to work. const CGFloat *toCol = CGColorGetComponents([[UIColor greenColor] CGColor]); The …

iphone core-graphics uicolor cgcolor
Create a rectangle with just two rounded corners in swift?

I need to create a rectangle that have just two rounded corners in swift (Objective C code also ok). At …

ios swift core-graphics
How to control shadow spread and blur?

I have designed UI elements in sketch, and one of them has a shadow with blur 1 and spread 0. I looked …

ios swift uiview core-graphics
Get Slightly Lighter and Darker Color from UIColor

I was looking to be able to turn any UIColor into a gradient. The way I am intending to do …

objective-c ios core-graphics gradient uicolor
How to Convert UIImage to CIImage and vice versa

I'm trying to get CIImage from ImageView that display on the screen. UIImage *image = myImageView.image; convert image UIImage to …

cocoa-touch ios5 uiimage core-graphics core-image
How to Convert UIView to PDF within iOS?

There are a lot of resources about how to display a PDF in an App's UIView. What I am working …

ios pdf uiview uiimage core-graphics
Rounded Corners only on Top of a UIView

Hi i am searching a clean solution without overwriting drawRect or stuff like that to create a UIView with Rounded …

objective-c uiview core-graphics rounded-corners
NSLog with CGPoint data

I have a CGPoint called point that is being assigned a touch: UITouch *touch = [touches anyObject]; CGPoint point = [touch locationInView:…

iphone cocoa cocoa-touch core-graphics nslog
How to use CGAffineTransformMakeRotation?

I want to draw text use Quartz 2D. The "menu" direction is wrong. I want "Menu" still readable and have 45 …

ios cocoa-touch core-graphics quartz-2d