core-graphics
How can you perform an erase function for a certain point in Quartz2d drawing?
I use this code to draw a line in quartz2d CGPoint currentPoint = CGPointMake(rascalImage.center.x, rascalImage.center.y);[详细]
2023-03-30 22:12 分类:问答How to optimise core-graphics manipulations into that method ?
I have profiled my app and it spends most of its time in this class method I wrote to combine two UIImages together:[详细]
2023-03-29 20:39 分类:问答Issue Creating and Masking a Solid Color CGImage
In an iPhone app I have a set of black and white images. I need a function which changes the white areas of the image to transparent and the black to an arbitrary color.[详细]
2023-03-29 05:20 分类:问答Porting creation of a PDF document from iOS to Mac OS X
I am porting my code from iPhone to Mac and I have no idea how I can do this in Mac. Here\'s my code that I am trying to convert and I know that there\'s no UIGraphic in Mac. Can someone point me to a[详细]
2023-03-28 09:22 分类:问答How do I draw a line so that it appears onscreen, pixel by pixel?
I\'m new to Objective-C, and I\'m trying to draw a line onscreen in such a way that it appears one pixel at a time.[详细]
2023-03-27 20:56 分类:问答Applying alpha outside intersection of 2 CGPath objects
I have a CGPathRef for an oddly shaped polygon. I need to apply an alpha to the area outside of this path. This is pretty straightforward.[详细]
2023-03-27 18:24 分类:问答Hit-testing text in Cocoa (Mac)?
Is there a way for hit-testing text? That is for example if I draw text \"Hello graph!\"\" on the screen, within a bounding box, how can I tell the dimension and position of these blank rectangles (bl[详细]
2023-03-27 17:10 分类:问答Why am I receiving an "invalid context" error in the following Core Graphics code?
I have the following drawing code: static int i=10; int x; int y; int x2; int y2; // Drawing code. CGContextRef c = UIGraphicsGetCurrentContext();[详细]
2023-03-27 03:06 分类:问答Creating a gradient fill for text using [UIColor colorWithPatternImage:]
I want to create a gradient for the fill color of my text. Curren开发者_如何学编程tly I am doing it by setting the color of a UILabel\'s text as[详细]
2023-03-27 01:20 分类:问答Core Graphics- drawRect: not getting called frequently enough
In my application, I have a UIViewController with a subclassed UIView (and several other elements) inside of it. Inside of the UIView, called DrawView, in my drawRect: method, I draw a table grid type[详细]
2023-03-26 16:00 分类:问答