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
1 answer

CAGradientLayer with stepping. How to use CALayer instead?

I've been using some CAGradientLayers recently and I have notices some very ugly stepping in it. So I did some researching and found the possibility to use CALayers instead. I'm very new to CoreGraphics and Quartz2D and I have no idea where to start…
Phil
  • 139
  • 1
  • 8
0
votes
2 answers

How to save and restore multiple context's in cocoa/quartz?

Right now I do this: CGContextRef context = NULL; context = [[NSGraphicsContext currentContext] graphicsPort]; [see if I need to restore] [if so] CGContextRestoreGState(context); [do transformations and draw some stuff] [save the current…
bottleboot
  • 1,659
  • 2
  • 25
  • 41
0
votes
1 answer

NSBezierPath / Line Intersection / flatten

I'm currently porting my jruby/java2d Graph Drawing/Layouting application to macruby/cocoa. Therefore I need to get the intersection point of an open NSBezierPath with an closed NSBezierPath. In java2d I used the following trick. I flattened both…
thestoneage
  • 132
  • 1
  • 10
0
votes
3 answers

Modify pdf metadata color space using CoreGraphics

I m trying to change color space for image objects of a pdf file, but first problem is that I cannot find ICC color profile inside pdf metadata. All I have in Metadata is one array with 2 components: ColorSpace : Name value: ICCBased Stream…
M Penades
  • 1,572
  • 13
  • 24
0
votes
2 answers

Disable redrawing of CALayer contents when moved (iphone)

I have a UIView with a large number of CALayers (~1000), each of which has a small image as its contents. This UIView is a subview of a scrollview (actually it's a subview of another view which is a subview of the scrollview). This draws…
user166355
0
votes
1 answer

How to draw on two separate layers iOS, coregraphics

I need help with drawing something like this: I have been told that the gray background bar and the purple bar should be drawn on separate layers. And then the dots there that signifies the chapters of a book (which this slider is about) will be on…
Anton Unt
  • 1,835
  • 1
  • 21
  • 47
0
votes
1 answer

Making pictures look inset

I wonder if anyone has an idea how you have to transform an image such that it looks "inset" to the context? I need the effect for an application I am writing, but I am not sure what the exact workflow is to achieve the effect mentioned above. Best…
Erik
  • 11,944
  • 18
  • 87
  • 126
0
votes
1 answer

CoreAnimation: warning, deleted thread with uncommitted CATransaction;

I have no idea what I'm looking at here. I tried to trace down the problem to some kind of animation, but I don't know where that could be. How can I track down where this is coming from? CoreAnimation: warning, deleted thread with uncommitted…
frankie
  • 661
  • 2
  • 10
  • 25
0
votes
1 answer

iOS Quartz PDF add file and destination links to a new pdf

i use this code below to parse a PDF file and extract three different types of URI's/data. 1) Normal URL 2) Anchor within the PDF 3) A file link example "../other.pdf" See Code here: http://pastebin.com/LMJtVGZw -- Due to a user requirement i…
user547064
  • 217
  • 1
  • 4
  • 14
0
votes
1 answer

Which is faster? Using Quartz & CGRects vs an array UIImageViews

Just wondering weather its faster, if you have lots (~several hundred to a thousand) 2D images, to use Quartz or an array of UIImageViews. Cheers!
user128526
  • 111
  • 1
  • 4
  • 10
0
votes
1 answer

CGMutablePathRef Memory Management

Do I need to release a CGMutablePathRef when I'm done with it? If so, how?
cocoatoucher
  • 1,483
  • 3
  • 17
  • 22
0
votes
1 answer

Fading in a UIView shadow while resizing

I am attempting to scale my UIView at the same time as I fade in a shadow, using the following: myController.view.layer.shadowOffset = CGSizeMake(0, 3); myController.view.layer.shadowColor = [UIColor blackColor].CGColor; …
Ben Packard
  • 26,102
  • 25
  • 102
  • 183
0
votes
1 answer

transitionWithView gets called repeatedly after ViewController is dismissed

This is in a ModalViewController using StoryBoard and ARC When I dismiss the view I see this line... NSLog(@"%d %@",[imgArray count],fileName); ... being printed over and over again. How do I kill the functions…
JulianB
  • 1,686
  • 1
  • 19
  • 31
0
votes
2 answers

getting the text up-side down in core graphic

I am drawing a text in core graphic by following - (void)drawRect:(CGRect)rect { CGContextTranslateCTM(context, 20, 150); CGContextScaleCTM(context, 1, 1); // Draw the text using the MyDrawText function myDrawText(context,…
tranvutuan
  • 6,089
  • 8
  • 47
  • 83
0
votes
1 answer

Use cornerRadius or cornered transparent image?

My UITableView is going to contain about 7 visible cells at a given time. Each cell is going to have 4 UIViews. I want each UIView to have a smooth corner. Is it better to use Quartz to apply the cornerRadius on the UIView or to make the UIView an…
ninjaneer
  • 6,951
  • 8
  • 60
  • 104