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
2 answers

iPhone Quartz - Call Drawing Method From Other Class

I'm trying to call a drawing method from Class A for example, the method located in Class B, the method is being called but no drawing happen. - (void)drawIt { CGContextRef context = UIGraphicsGetCurrentContext(); …
jkigel
  • 1,592
  • 6
  • 28
  • 49
0
votes
1 answer

Get NSImage from CIFilter "CIRadialGradient"

I have to generate an image like the one in Apples Doc at CIRadialGradient found here: I tried many ways and ended with: +(NSImage*)radialGradientWithR0:(float)r0 r1:(float)r1 c0:(NSColor*)c0 c1:(NSColor*)c1 imageDimensionPx:(int)imageDimension { …
Felix
  • 63
  • 5
0
votes
1 answer

Options to CGBitmapContext for Drawining

Is there an option to the CGBitmapContext or Quartz 2D? I want to use it for drawing on an UIImage in monotouch. thanks Alex.
Alex
  • 459
  • 3
  • 14
0
votes
1 answer

Changing color space on and image

I'm creating a mask based on DeviceGray color space based image. What basically I want to do is to change all sorts of gray (beside black) pixels into white and leave black pixels as they are. So I want my image to be consisted with black and white…
deimus
  • 9,565
  • 12
  • 63
  • 107
0
votes
1 answer

Setting apple.awt.graphics.UseQuartz to false for applets with Apple's 1.5 update 4

Apple seems to have quart rendering on by default: http://lists.apple.com/archives/Java-dev/2007/Jun/msg00066.html However there are cases where this is attrociously slow. From a desktop app, I merely add: -Dapple.awt.graphics.UseQuartz=false This…
jsight
  • 27,819
  • 25
  • 107
  • 140
0
votes
1 answer

Draw chinese font glyphs with Quartz 2D?

I have to show Chinese characters with the function: CG_EXTERN void CGContextShowGlyphsAtPoint(CGContextRef context, CGFloat x, CGFloat y, const CGGlyph glyphs[], size_t count) But it doesn't show accurately. The code I use is as follows: CGFontRef…
Bunsman
  • 1
  • 2
0
votes
1 answer

Best way to do copy fitting in iOS?

Has anyone got a good copyfitting routine for iOS? I basically want to draw the largest text that will fit inside a rectangle. The previous way I did it in Carbon was to create the text at a huge font size, then keep reducing the size until the…
Owen Hartnett
  • 5,925
  • 2
  • 19
  • 35
0
votes
1 answer

Quartz iPhone drawRect not called

I am subclassing a UIView and am calling it via a detail view controller. When I load it, it shows up with the right dimensions and positioning, however it is just a black square... When I just put a UIView into interface builder with the class,…
michaela
  • 173
  • 1
  • 2
  • 13
0
votes
1 answer

clearContextBeforeDrawing in TouchEnd Method

I am using the pencil drawing simply. But i have to show it from rough drawing to Smooth drawing. So I am using the code differently in both touchesMoved and touchesEnded. The codes are as follows: -(void)touchesMoved:(NSSet *)touches…
Myaaoonn
  • 1,001
  • 12
  • 25
0
votes
2 answers

EXC_BAD_ACCESS on animationForKey:

I'm trying to use a recent feature of the Scintilla component, which provides OSX-like text-highlighting effect (the yellow animated bouncing box), and I'm stuck with an error that pops up intermittently : EXC_BAD_ACCESS pointing to this…
Dr.Kameleon
  • 22,532
  • 20
  • 115
  • 223
0
votes
2 answers

Detecting what part of screen/application window is using OpenGL?

I am interested in identifying which part of application is making use of OpenGL. Take an example of Chrome where Youtube video being played in Flash (get rendered via OpenGL). I am interested in detecting only the area of application where that…
RLT
  • 4,219
  • 4
  • 37
  • 91
0
votes
1 answer

Custom Animations with UIViewController

I'm using a custom animation to present my view controllers. Here's the code: -(void)launchCustomModal:(id)sender { UIButton *buttonClicked = (UIButton *)sender; int selection; selection = buttonClicked.tag; [ticker…
Sean Danzeiser
  • 9,141
  • 12
  • 52
  • 90
0
votes
6 answers

On iPhone, what is the best way to move a UIImageView with onscreen controls?

I am developing an iPhone version of this game. http://www.students.uni-mainz.de/rathb000/Fillit/Game.html I am using an NSTimer to change the position of the ship by 1 pixel and the time interval for the timer is 0.002. However, i have noticed…
Chintan Patel
  • 3,175
  • 3
  • 30
  • 36
0
votes
2 answers

Gradient Stroke on UIButton

I've found the GradientButton class for gradients on a UIButton - however I can't figure out how to get a matching stroke around the button. How do you create a gradient stroke on the button?
C.J.
  • 239
  • 1
  • 10
0
votes
2 answers

Calling setNeedsDisplay on a UIView from another class

I have a UIView subclass that I manipulate a lot of graphics on based on touches. All the [self setNeedsDisplay] calls seem to be fine. However, I used an instance variable pointer to my same UIView subclass instance, and then tried manipulating…
Craig
  • 16,291
  • 12
  • 43
  • 39
1 2 3
80
81