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.
Questions tagged [quartz-graphics]
1214 questions
0
votes
2 answers
Setting cell rounded corner and border width makes tableview scrolling extremely slow
I'd like to round the corner of my tableview cells and make the gap between them bigger.
I do it in the cellForRowAtIndexPath like this:
static NSString* CellIdentifier = @"normal";
cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier…

Tom
- 3,899
- 22
- 78
- 137
0
votes
1 answer
using multiple colours for stroking context
i'm drawing a graph and i want the the ascending lines to be in green and the descending lines in red. i tried the following:
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(context,…

HusseinB
- 1,321
- 1
- 17
- 41
0
votes
2 answers
Problem with drawing paths with Core Graphics - iPhone
I am trying to draw a map annotation in my app - very much like MapKit's MKAnnotationView, but without the mapkit.
I have a problem with the ordering of the path for the view outline that I cant figure out.
Image of…

Mobs
- 1,572
- 12
- 17
0
votes
1 answer
Background of UILabel visible after a composite
I am doing something a bit unusual. I'm trying to tint all the components in my application red (you may have seen some other postings from me about this, but this is something more specific). To do so, I'm intercepting all calls to CALayer's…

btschumy
- 1,435
- 1
- 18
- 35
0
votes
0 answers
iOS drawing borders around views - blurry when converted into an image
I have a two-dimensional table in my app and I want to have a 1 pixel thick border around each cell. Each cell is a distinct UIView and I found that I can draw such borders with something like:
dataCell.layer.borderWidth = 0.5; // repeat for each…

SaltyNuts
- 5,068
- 8
- 48
- 80
0
votes
1 answer
What is the CoreGraphics equivalent of UIKit's contentScaleFactor?
What is the CoreGraphics equivalent of UIKit's contentScaleFactor?
I am creating a PDF using the UKit PDF creation functions, which allow rendering to a PDF context. I have a requirement, however, to DEGRADE the quality of the generated PDF. We have…

micksabox
- 113
- 6
0
votes
1 answer
Layer Shadow Missing on iPad3 (but works in Simulator)
I draw a shadow behind a UIView using the following code
self.view.layer.borderColor = [UIColor whiteColor].CGColor;
self.view.layer.shadowColor = [UIColor blackColor].CGColor;
self.view.layer.shadowOpacity = 1.0;
…

Bernd
- 11,133
- 11
- 65
- 98
0
votes
2 answers
Unwanted line between two circles - quartz
I have drawn two circles. They are drawn, but there is a line that connects them. How do I remove it? Here is my code:
//Background styling
CGContextSetRGBFillColor(context, 202.0/225.0, 255.0/225.0, 112.0/225.0, 1);
//Background…

Wilhelm Michaelsen
- 21
- 5
0
votes
1 answer
Add color to rectangle
I want to make a circle with a fill color. This is my code:
context = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(context, 2.0);
CGContextSetRGBStrokeColor(context, 0, 34, 102, 1);
CGContextSetRGBFillColor(context, 135, 206,…

Wilhelm Michaelsen
- 21
- 5
0
votes
2 answers
Set circle fill color using Quartz
I want to add fill color to a circle. This code dont work:
CGContextRef context = UIGraphicsGetCurrentContext();
CGContextSetLineWidth(context, 2.0);
CGContextSetRGBStrokeColor(context, 0, 0, 225, 1);
…

Wilhelm Michaelsen
- 21
- 5
0
votes
1 answer
Make circle when user touch
When the user clicks the screen a circle should be drawn where the user touch. Whats wrong with my code?
{
BOOL _touchHasBegun;
CGPoint whereUserClicked;
float pointWhereUserClickedX;
float pointWhereUserClickedY;
}
-…
0
votes
1 answer
Draw quart shape when clicked
This is my code:
@implementation myView2
{
BOOL _touchHasBegun;
}
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
_touchHasBegun = YES;
}
- (void)drawRect:(CGRect)rect
{
if (_touchHasBegun == YES)
{
NSLog(@"fjnv");
…

Wilhelm Michaelsen
- 21
- 5
0
votes
1 answer
Creating arcs and set color to them with quartz
I want to create a circle with a border color. Im not familiar with quartz but I know that this is how an arc is created:
CGContextAddArc(<#CGContextRef c#>, <#CGFloat x#>, <#CGFloat y#>, <#CGFloat radius#>, <#CGFloat startAngle#>, <#CGFloat…

JimmyYXA
- 71
- 6
0
votes
1 answer
Change image after UIImageView had started/completed animation
I need my image view to change its .image at the beginning and end of each animation.
This is the animation:
- (void)performLeft{
CGPoint point0 = imView.layer.position;
CGPoint point1 = { point0.x - 4, point0.y };
CABasicAnimation…

Tanner
- 183
- 1
- 1
- 7
0
votes
1 answer
Quartz 2D MVC Drawing
all. I'm trying to follow a tutorial on making a ball bounce around the screen of an iPhone. The tutorial constructs the application in a MVC scheme. I'm having trouble wrapping my head around this concept when it comes to the drawRect method in the…

Bobby Knezevic
- 61
- 2
- 9