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
How to add randon transparent dots over CGPath or NSBezierPath
Wanted to know how can I add transparent dots or lines over CGPath or NSBezierPath.
Here are more details about the problem.
I've a solid line say width = 30(drawn using NSBezierPath or CGPath) , now I wanted to draw transparent dots over it or…

Omkar
- 1,108
- 10
- 19
0
votes
2 answers
How to Validate a Character Compatible with MacRoman
Is there a simple way (a function, a method...) of validating a character that a user types to see if it's compatible with Mac OS Roman? I've read a few dozen topics to find out why an iOS application crashes in reference to…

El Tomato
- 6,479
- 6
- 46
- 75
0
votes
1 answer
How to draw elliptical gradient in cocoa?
Is it possible to get this kind of gradient in cocoa ?
I can use simple CGContextDrawRadialGradient with clip made by CGContextAddEllipseInRect but the effect will slightly different.
Is it any posibility to draw exact this shade/gradient?

maseth
- 841
- 1
- 11
- 19
0
votes
1 answer
Quartz Drawing While Scrolling Issue
I have a subclass of UIView which I draw a graph on it.
GraphingView.h
@interface GraphingView : UIView
...
@end
I draw things here:
GraphingView.m
- (void)drawRect:(CGRect)rect
{
...
}
Then, from another controller, I call this graph by just…

lnguyen55
- 737
- 6
- 16
0
votes
2 answers
Tinting iPhone application screen red
I'm trying to place a red tint on all the screens of my iPhone application. I've experimented on a bitmap and found I get the effect I want by compositing a dark red color onto the screen image using Multiply (kCGBlendModeMultiply).
So the question…

btschumy
- 1,435
- 1
- 18
- 35
0
votes
1 answer
Colorable pin view
Does anyone know of any code to draw the pins we see in MKPinAnnotationView in a regular UIView?
The motivation is to remove the hundreds of different colored pin images we are currently bundling with our app to drop all over medical images (regular…

Paul de Lange
- 10,613
- 10
- 41
- 56
0
votes
1 answer
How many times a second should CADisplayLink's displayLink be called?
I have a CADisplayLink running in line with Chipmunk Physics, and I'm getting very slow performance. I put an NSLog in the method that's called on the CADisplayLink update, and it's being called an average of 22 times per second. I was under the…

Luke
- 9,512
- 15
- 82
- 146
0
votes
1 answer
CGContextDrawImage + CGContextClipToMask performance
I am using CGContextDrawImage and am not happy with the performance.
Here is my situation:
I have a CGImage that was created from a CGBitmapContext with kCGBitmapByteOrder32Big and kCGImageAlphaPremultipliedLast, and contains RGBA pixels. Size is…

jjxtra
- 20,415
- 16
- 100
- 140
0
votes
1 answer
CGImageRef | Memory Consumption | Leak
I need to capture the desktop image and process its RGB Data, i am using Quartz API to do the same,
The problem what i am facing is, high mem usage,
please refer the function ,
Edit here,
This function is getting called through pThread ;…

Amitg2k12
- 3,765
- 10
- 48
- 97
0
votes
1 answer
I want to use Quartz to make a single color image a different color
I'm sure the answer for this exists on stackoverflow, but I've been looking and haven't been able to find it yet. Essentially, I have several images with transparent backgrounds and some black imagery, I want to be able to change the color of the…

livingtech
- 3,570
- 29
- 42
0
votes
1 answer
Draw straight line on uiview
I'm writing a small word search game for the iPad.
i have a UIViewController and I tile the letters random in a UIView (lettersView). I set the label's tag in a 10x10 size matrix, using a UILabel for each letter.
Here is my problem: I don't know…

fulberto100
- 313
- 5
- 23
0
votes
1 answer
Mountain Lion Menu Bar CGBlendMode
What's the CGBlendMode of the Menu Bar is on Mountain Lion? My first guess is kCGBlendModeOverlay, but that seems a bit too transparent.
Any ideas? I'm trying to make a NSView with a gradient match the look of the Menu Bar.

aroooo
- 4,726
- 8
- 47
- 81
0
votes
2 answers
UIView with rounded corners: I've forgotten something
I'm developing an iOS application with latest SDK.
I have this custom UIView:
#define ANNOTATION_WIDTH 250
#define ANNOTATION_HEIGHT 200
@implementation CustomView
- (id)initwithTitle:(NSString* )title subTitle:(NSString* )subTitle
{
CGRect…

VansFannel
- 45,055
- 107
- 359
- 626
0
votes
1 answer
How do I draw a sprite on a background using Quartz and CGLayers?
I am a newbie in Quartz and I am fighting to understand this stuff apple say is very easy and straightforward.
I have created two CGLayers: one for a fixed background and another one for a sprite. I want this sprite to move.
Both the background…

Duck
- 34,902
- 47
- 248
- 470
0
votes
3 answers
How to draw a battery in ios
I'd like to draw a battery to show the battery level of one of my device that is connected to the phone via bluetooth.
How can I achieve this? I'm a total noob with 2d drawing .... any pointers is helpful
thanks,

pdiddy
- 6,217
- 10
- 50
- 111