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
1 answer
Image is rotated after process. How can i do this correctly?
My problem is: UIImage is rotated after processing.
I use a helper class for the image processing called ProcessHelper. This class has two methods:
+ (unsigned char *) convertUIImageToBitmapRGBA8:(UIImage *) image;
+ (UIImage *)…

Tomasz Szulc
- 4,217
- 4
- 43
- 79
0
votes
4 answers
change uiview frame from both sides
Hello i want to make animation of a frame change. But i don't find nothing similar on the internet. I know how to animate the frame change, but the tricky part is that for example i have a square and i want it to shrink to the center. So how do i…

Lukas
- 2,515
- 4
- 28
- 37
0
votes
1 answer
CGContextFillRect not working
This code appears to do nothing. Build successful, no errors. No rectangle drawn on screen.
- (void)viewDidLoad
{
[super viewDidLoad];
UIColor *reliantMagenta = [UIColor colorWithRed:208.0f / 255.0f green:27.0f / 255.0f…

Fresheyeball
- 29,567
- 20
- 102
- 164
0
votes
1 answer
iOS - scaling text vertically on Quartz
I am writing some text to a quartz context.
I have a box of 500 x 200 pixels and I am writing some text inside. The box can have any aspect ratio but the text will always write with the font proportions as it is. What I want is to scale the font…

Duck
- 34,902
- 47
- 248
- 470
0
votes
1 answer
Creating a simple, single-view Quartz app
I'm an Objective-C newbie. Most of my experience is in Java. Also, I've never really used Xcode before and so I'm pretty new at that as well.
I'm trying to create a simple, single-view Quartz OS X app (not iOS) to display agent-modeling simulations.…

Vivin Paliath
- 94,126
- 40
- 223
- 295
0
votes
2 answers
Simple graph draw task for iPhone
I need to draw a simple graph, but I have no experience with custom draw iPhone graphics yet, so I hope, somebody can help me.
Task is simple: I need to draw graph background from .png file from resource, and draw points, also from bundled…

Andrey
- 2,659
- 4
- 29
- 54
0
votes
2 answers
Background in an iPhone Quartz CAAnimation
Whenever I am using a quartz animation the background of the animation is white. How can I change this to be a different color. This is the code I am using to produce the animation
[UIView beginAnimations:nil context:nil];
[UIView…

DHamrick
- 8,338
- 9
- 45
- 62
0
votes
1 answer
How to implement: UIViewContentMode ... Repeat?
UIViewContentMode covers a couple of positions you frequently need (Center, ScaleToFill, ScaleToFit), and a load that I suspect most people rarely use (TopRight, anyone?)
But it appears to be missing an obvious one: "Repeat".
Is there a way to…

Adam
- 32,900
- 16
- 126
- 153
0
votes
4 answers
How can I refresh core plot without returning from a method?
I have a cocoa interface that uses core plot. When I press a button in the interface, a plot is drawn. I wanted to create a sequence of graphs by calling the plotting method multiple times along with calls to sleep() in between. But it seems that…

yan bellavance
- 4,710
- 20
- 62
- 93
0
votes
1 answer
Draw multiple UIView objects dynamically on the current UIView
I'm trying to make my main ViewController with a custom view draw multiple custom UIView's to the main view, but somehow they are not drawing, I'm trying to draw dots.
My code is:
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any…

perrohunter
- 3,454
- 8
- 39
- 55
0
votes
1 answer
UIimageView rounded top corner BezierPath not working?
I'm try to round the top two corner of a uiimageview but the following code doesn't show rounded corner only the normal image. Am I missing something?
Thx
UIImageView * imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 320,…

Nicolas Manzini
- 8,379
- 6
- 63
- 81
0
votes
1 answer
CATransition animation key always "transition"
Got a basic CATranisition. Works.
animationKey = @"fadeIn";
[self.icon setImage:self.iconSelected];
[self.shadow setAlpha:1.0];
CATransition *transitionIn = [CATransition animation];
…

Will Larche
- 3,119
- 7
- 26
- 34
0
votes
2 answers
Rotate a UIImageView around a point off screen? (center of uiImageView
Hi I have a UIImageView which is part on, part off screen.
I want to rotate the view around a point off screen (the center of the view.)
How do I do this?
fullRotationAnimation = [CABasicAnimation…

dev6546
- 1,412
- 7
- 21
- 40
0
votes
0 answers
How to write sketch app on iOS
I'm trying to create sketch app that can draw shapes/path by finger.
What I've done so far is create UIBezierPath when touch start, and draw the path while finger moves.
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch…

Kazuhito Ochiai
- 1
- 1
0
votes
1 answer
CGLayer appearing the wrong way around
I've got a UIView subclass (TraceView) which is 200 wide by 100 tall, and I'm attempting to draw on it pixel by pixel. In this case, I'm trying to draw a horizontal blue line that goes 75% of the way across. Instead, I get two vertical blue lines…

Curyous
- 8,716
- 15
- 58
- 83