Questions tagged [quartz-graphics]

Quartz is graphic framework used on Mac OS X. It forms a graphic layer. Term Quartz is used to represent Quartz 2D and Quartz Compositor. Quartz graphic is a 2D renderer in Core Graphics.

1214 questions
0
votes
3 answers

UIBezierPaths Not Showing in CALayer drawLayer inContext

I am using the code below to draw an arc into the drawLayer method of a custom CALayer class but nothing is displayed: (void) drawLayer:(CALayer *)layer inContext:(CGContextRef)ctx { float r = self.bounds.size.width/2; …
Karthun
  • 1
  • 3
0
votes
2 answers

IPHONE: memory still allocated after releasing object?

I have a method for drawing an object offscreen to a file, using quartz. The last lines of this method are: CGRect LayerRect = CGRectMake(mX,mY, wLayer, hLayer); CGContextDrawImage(objectContext, LayerRect, objectProxy.image.CGImage); // 1 CGRect…
Duck
  • 34,902
  • 47
  • 248
  • 470
0
votes
1 answer

CALayer filters and bounds

I'm just starting writing some Core Animation code and I've just spent a frustrating day trying to figure out a particular problem. I have two layer-backed views that together make up a wizard/ assistant style user interface: 1) a custom background…
Frank
  • 1
  • 1
0
votes
1 answer

How to use Quartz to do the spotlight effect?

I would like to do some effect like this using Quartz: I would like to have a layer on top of the imageView, but some of the area is no covered, how can I implement it? Any ideas? Thanks.
DNB5brims
  • 29,344
  • 50
  • 131
  • 195
0
votes
1 answer

Fill the interior of path keeping line width visible

I am trying to fill the interior of shape but no use. It only strokes path but do not fill with hello colour. I have googled but nothing works as fill not working. Guide me what I am doing wrong. CGContextRef ctx =…
fibnochi
  • 1,113
  • 1
  • 9
  • 26
0
votes
1 answer

how to draw circle with only its stroke

I just want to draw circle with stroke, the code below draws well but it fills the circle. I do not want it filled. Please help me self.circleView = [[UIView alloc] initWithFrame:CGRectMake(10,20,20,20)]; circleView.alpha = 0.5; …
erdemgc
  • 1,701
  • 3
  • 23
  • 43
0
votes
1 answer

CGContext giving unexpected line width

I'm trying to draw a L shape, the code works but the lines are not of the right width and is 5 pixels thick for vertical lines and some are 3 pixels thick despite me explicitly telling it to use 3 pixel as line width,what am I doing wrong? here's my…
fibnochi
  • 1,113
  • 1
  • 9
  • 26
0
votes
1 answer

ios drawing on uiscrollview with pan and pinch

This is a self-answering question in gratitude to the various help I've gained off both StackOverflow and the Ray Wenderlich tutorial on drawing. I thought I'd put the various snippets together in one package. My problem was that I wanted to do…
0
votes
1 answer

Vector Graphics draw a knobs

I would like to draw an interface with knob, similar to "overdrive" (green) in this photo: In iOS, such as vector graphics should I use? Quartz, OpenGL ES, or something else? I'm sure can be done with OpenGL, but I think it's very complicated. So…
0
votes
1 answer

How to draw a pdf context in another context?

I created a PDF context and the context is saved in the file. As the existing pdf context to draw in a different context? pdfContext -> viewContext my code: void myCreatePDFFile(CGRect pageRect, const char *fileName){ CGContextRef…
TESTer
  • 55
  • 6
0
votes
3 answers

UIGraphicsBeginImageContext is not drawing

I want to draw lines frequently in my view, but it is not working. I dont want to use drawRect, as I have to maintain the state of the previous drawn lines also. Below is the code for line drawing. Please guide. - (void)drawPathWithPoints:(int)xAxis…
york
  • 149
  • 1
  • 11
0
votes
1 answer

Core Graphics AddQuadCureToPoint from Center of View/Circle

What I am trying to accomplish is drawing curved lines from a center of a view. So far with the help of much googling and this site...I've accomplished the image below. http://www.flickr.com/photos/57562417@N00/9100635690/ What I would like to do is…
JL272
  • 13
  • 1
  • 3
0
votes
2 answers

Why am I getting the error "QuarzCore/QuartzCore.h not found"?

I am new to iOS development and trying to build an app for the device. It gives me the error "QuartzCore.h not found". However, when I try to build the same for the Simulator, it works fine. I tried adding the QuartzCore.Framework in the build…
rahul
  • 6,447
  • 3
  • 31
  • 42
0
votes
1 answer

Freehand drawing in iOS - Need to use points

I'm trying to implement freehand drawing on top of an image, but I don't want to save the result as an image. I've adapted code from this article, but I am not seeing anything draw (though I know the drawRect method is being called). I've verified…
thephatp
  • 1,479
  • 1
  • 20
  • 37
0
votes
0 answers

Issue drawing custom UINavigationBar back button

I am using Quartz 2D to draw a back arrow (like a less than sign - <) as the back button of the UINavigationController. This is working fine for the normal button, but it is not changing the image when the button is selected…