Top "Cgcontext" questions

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

Create new UIImage by adding shadow to existing UIImage

I've taken a look at this question: UIImage Shadow Trouble But the accepted answer didn't work for me. What I'm …

iphone objective-c cocoa-touch uiimage cgcontext
Drawing triangle/arrow on a line with CGContext

I am using the framework of route-me for working with locations. In this code the path between two markers(points) …

iphone core-graphics quartz-2d cgcontext
Drawing into CGImageRef

I want to create a CGImageRef and draw points to it. What context to use to create an empty CGImageRef …

iphone graphics cgcontext
When drawing an arc using CGContextAddArcToPoint(), what does (x1,y1) and (x2,y2) mean?

You can use the following code to draw an arc using Quartz: CGContextMoveToPoint(context2, x, y); CGContextAddArcToPoint(context2, x1, y1, …

ios core-graphics cgcontext
CGBitmapContextCreate on the iPhone/iPad

I have a method that needs to parse through a bunch of large PNG images pixel by pixel (the PNGs …

iphone memory ipad cgcontext
How to round of CGFloat value

Possible Duplicate: NSNumberFormatter for rounding up float values Currently, I calculate the scaling factor by using : CGFloat scale = CGContextGetCTM(context).…

iphone objective-c rounding cgcontext cgfloat
Iphone How to make context background transparent?

CALayer *sublayer = [CALayer layer]; /*sublayer.backgroundColor = [UIColor blueColor].CGColor; sublayer.shadowOffset = CGSizeMake(0, 3); sublayer.shadowRadius = 5.0; sublayer.shadowColor = [UIColor blackColor].CGColor; sublayer.…

ios iphone drawing calayer cgcontext
iPhone clear CGContext

I create a circle with a nice shadow with this code (I use MonoTouch.net for iPhone, Objective-C answers are …

iphone cgcontext
‘invalid context 0x0’ error when using CGContext* functions

/* Adding the Path */ UserGraphBuff = UIGraphicsGetCurrentContext(); CGContextSetRGBStrokeColor(UserGraphBuff,5,10,0,1); CGContextSetLineWidth(UserGraphBuff, 2 ); CGContextBeginPath(UserGraphBuff); //line to last user point CGContextAddLineToPoint(UserGraphBuff, (*xVal)[sizeof …

cocoa-touch quartz-2d cgcontext
<Error>: CGContextSaveGState: invalid context 0x0 Error

I am getting some issue related with preparing the UIImage out of a UIView. I sometimes (but not always) see …

iphone ios uiview cgcontext