quartz-graphics
Convert a given point from the window’s base coordinate system to the screen coordinate system
I am trying to figure out the way to convert a given point from the window’s base coordinate system to the screen coordinate system. I mean something like - (NSPoint)convertBaseToScreen:(NSPoint)poin[详细]
2023-03-13 15:09 分类:问答Very confused by a binding issue between a Cocoa app and a Movie Loader patch in Quartz Composer
I\'ve been programming for a while, but just recently decided to start developing for Mac OS X. I feel like I\'ve come to grips with the basics of Objective-C and Cocoa development over the past week.[详细]
2023-03-12 18:46 分类:问答iPhone - trying to understand UIBezier in CGContext
When I have a UIBezier and I stoke it on a view using drawRect I see the bezier is a a kind of volatile, I mean, it is really not drawn anywhere. Instead it is like it was written in a kind of buffer[详细]
2023-03-12 12:42 分类:问答Drawing many UIBezierPaths in a view
I am drawing several UIBezierPaths on a view based on finger movements. Every time a cycle of touches -- Began/Moved/Ended -- completes, I store the points and create a UIBezierPath that is stored in[详细]
2023-03-11 14:27 分类:问答I can't draw a NSRect based on where the user clicks
I am trying to draw a rectangle and let the user create it based on where he clicks and where he drags the mouse.[详细]
2023-03-11 11:51 分类:问答iPhone - trying to draw a line on a CALayer
I have a UIView class that I am using to have a CALayer. This layer will be used to draw lines, based on touch.[详细]
2023-03-10 13:55 分类:问答Manually moving/rotating stuff at 30-60 fps using Core Graphics
I\'ve a got a loop running at a separate thread updating the location and rotation of stuff, it runs at more than enough FPS and calls setNeedsDisplay on the main thread in t开发者_Python百科he end. T[详细]
2023-03-10 09:19 分类:问答CGContextStrokePath() causing "dots" in realtime drawing (finger painting) app
I\'m trying to write a finger painting type app.I am starting a path in touchesBegan and adding to that path in touchesMoved.In touchesMoved, I use the following code:[详细]
2023-03-10 04:04 分类:问答iPhone - encoding and decoding a NSValue
So I read here on SO that I can encode a CGLayerRef to a NSValue using NSValue *myCopy = [[NSValue all开发者_C百科oc] initWithBytes:&myLayer objCType:@encode(CGLayerRef)];[详细]
2023-03-10 01:42 分类:问答How to update my custom UIView with drawRect?
I\'m trying to build some iOS apps while learning and am having some trouble understanding the proper way to do this.[详细]
2023-03-10 00:52 分类:问答