Top "Cgcontext" questions

The CGContextRef opaque type represents a Quartz 2D drawing destination.

Changing UIImage color

I'm trying to change color of UIImage. My code: -(UIImage *)coloredImage:(UIImage *)firstImage withColor:(UIColor *)color { UIGraphicsBeginImageContext(firstImage.size); …

iphone objective-c ios uiimage cgcontext
Setting A CGContext Transparent Background

I am still struggling with drawing a line with CGContext. I have actually go to line to draw, but now …

iphone graphics background transparent cgcontext
iOS draw filled Circles

Not a graphics programmer here, so I'm trying to stumble through this. I'm trying to draw 9 filled circles, each a …

ios drawrect cgcontext
How to procedurally draw rectangle / lines in swift using CGContext

I've been trawling the internet for days trying to find the simplest code examples on how to draw a rectangle …

swift cgcontext rect
Cut transparent hole in UIView

Looking to create a view that has a transparent frame inside of it so that the views behind the view …

ios objective-c uiview cgcontext
Draw Line using CGContext

I want to draw line in table view cell so that I can place textfield & switch in single cell. …

iphone cgcontext
Line graphs on iOS

Anyone know how to create line graphs on iOS without using Core-Plot but using inbuilt frameworks? Desperately searching for an …

iphone ios cgcontext linegraph
UIGraphicsGetImageFromCurrentImageContext memory leak with previews

I'm trying to create previews images of pages in a PDF but I have some problems with the release of …

ios objective-c memory uikit cgcontext
iPhone CGContext: drawing two lines with two different colors

I am having some troubles using the CGContext with an iPhone app. I am trying to draw several lines with …

iphone line draw cgcontext
Draw a simple circle uiimage

I try to make a 20x20 UIImage with a simple blue circle. I try with this function, but the result …

ios uiimage core-graphics geometry cgcontext