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

Why is a CGPDFDocumentRef showing blurry lines on the view? (See Image)

I have a very strange and particular case on which I want to show a PDF on the screen. However, the problem is that my document is showing blurry lines, not shown on the program Acrobat Pro. Watch this image: https://i.stack.imgur.com/D7GWF.jpg Is…
ibjazz
  • 263
  • 5
  • 17
0
votes
1 answer

Bad performance in UIImageView when displaying shadows

I have got a scroll view displaying images. Its "clip subviews" setting is off, so images to the left and right are displayed as well. If I'm adding shadows to the image views like below (using QuartzCore), the scrolling performance is severly…
kay.herzam
  • 3,053
  • 3
  • 26
  • 37
0
votes
1 answer

Why does occur difference origin point in quartz framework?

I've made methods like follow and excute code. I am confusing about origin of quartz framework after looking follow result image. Please look at follow code and image. [in ViewController.m] Excute a follow method when press UIButton. - (void)test { …
S.J. Lim
  • 3,095
  • 3
  • 37
  • 55
0
votes
1 answer

Grandient background for a view on iOS

I'm pretty new to iOS developpement, and I'm trying to set my view background to a gradient. I created a CAGradientLayer and try to set it. It goes throught building, but my app crashes as soon as it open, throwing a "EXC_BAD_ACCESS". Here is my…
tomahh
  • 13,441
  • 3
  • 49
  • 70
0
votes
2 answers

Quartz Core. Solid colored rectangle and gradient colored circle on the same path

I believe subj is possible. If yes, then how to do it? If not, then how to set specific color on the specific path? Thanks. EDIT: Ok. Deleted confusing part of message.
folex
  • 5,122
  • 1
  • 28
  • 48
0
votes
2 answers

How to use CgLayer for optimal drawing

I have created a simple drawing project,the code works fine, but I want to cache the drawing into CGlayer, because I read that its more efficient way in drawing . I have read through the documents, but not able to understand it properly. So friends,…
Ranjit
  • 4,576
  • 11
  • 62
  • 121
0
votes
1 answer

iOS itunes app modal on ipad: seperator above scroll view

I am looking to implement a modal similar to the iTunes App on the ipad. Here is a great screen from another post: iTunes style modal view controller chain (form sheet). Notice the seperation of the 2 parts: the top(movie name/image/etc) and the…
0
votes
2 answers

How to replace one UI element by another with custom animation?

I want to implement nested commentaries(like stickers) in my own document viewer. At first, it should be UITextView, but when resignFirstResponder executes, it should become just a small button. The main question is: how to animate this? I've read…
folex
  • 5,122
  • 1
  • 28
  • 48
0
votes
1 answer

CoreGraphics or Quartz Drawing keeps clearing

I'm using Where penLayer is a UIView UIGraphicsBeginImageContext(penLayer.frame.size); CGContextRef context = UIGraphicsGetCurrentContext(); //My Drawing Code penLayer.image = UIGraphicsGetImageFromCurrentImageContext(); [penLayer…
BarryF
  • 77
  • 1
  • 10
0
votes
0 answers

show matrix in iOS?

I have a matrix of 1s and 0s and I need a way to show that matrix graphically. For example painting a dot in a UIScrollView with every 1 I find. I'm trying to do it with Quartz 2D and things like CGContextSetStrokeColor(c,…
Sergiodiaz53
  • 1,268
  • 2
  • 14
  • 23
0
votes
1 answer

Hard crash when drawing content for CALayer using quartz

I am trying to figure out why iOS crash my application in the harsh way (no crash logs, immediate shudown with black screen of death with spinner shown for a while). It happens when I render content for CALayer using Quartz. I suspected the memory…
Lukasz
  • 19,816
  • 17
  • 83
  • 139
0
votes
1 answer

Highlighting the PDF - iOS

I want to implement a Highlight function in my pdf reader app. Unfortunately, my research yielded very few information about this. However, I came to believe that I will have to use an "overlay" where the drawing or "highlighting" must be done. What…
Anna Fortuna
  • 1,071
  • 2
  • 17
  • 33
0
votes
1 answer

Save photo with written in PhotoAlbum

I have a subclass of UIView containing a written advertising, and I want add it on a photo in a Graphics Context, but this UIView not saved in the photo Album when I save the photo. This is the code: - (IBAction)saveAction:(id)sender{ CGRect…
Ortensia C.
  • 4,666
  • 11
  • 43
  • 70
0
votes
1 answer

How can i get rotate UIImageView with changable angle?

I have created one UIImageView Here's code capView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:kARROW_CAP_NAME]]; capView.frame = CGRectMake(0, 0, kARROW_H, kARROW_H); [self addSubview:capView]; Now I have two points which I need to…
Solid Soft
  • 1,872
  • 2
  • 25
  • 55
0
votes
1 answer

How can I draw on a sublayer of a UIButton?

I'm trying to draw some fancy graphics on a UIButton using CoreGraphics and CALayers, but I can't get anything on a sublayer to display. Here's how I set up my sublayer: - (id)initWithCoder:(NSCoder *)aDecoder { self = [super…
Thorsten
  • 12,921
  • 17
  • 60
  • 79