I use this code to draw a line in quartz2d CGPoint currentPoint = CGPointMake(rascalImage.center.x, rascalImage.center.y);
I have profiled my app and it spends most of its time in this class method I wrote to combine two UIImages together:
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.
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
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.
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.
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
I have the following drawing code: static int i=10; int x; int y; int x2; int y2; // Drawing code. CGContextRef c = UIGraphicsGetCurrentContext();
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
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