I want to create a triangle using Quartz 2D functions. The 3 edges of the triangle should be in different co开发者_StackOverflow中文版lors. I am able to create the triangle but not able to set the col
I need to draw 开发者_StackOverflow中文版an outline for a rounded rectangle. I know I can make lines and arcs, but maybe there is also a function for rounded rects?Instead of making your own path out
This code I use to draw in my app. So 开发者_Python百科I have problem, if I draw with alpha property = 1. It is very good but if I change alpha property = 0.2 then my paint is not good. How do I make
I am developing for iphone. I want to creating a mutable path via CGPathCreateMutable(), and I want to return it out of the function which creates it. I\'m suppose to call a CGPathRelease() when I\'m
I\'m trying to write some code that discards all keyboard and mouse events when enabled on Mac OSX 10.6. My code runs as the root user. The approach I\'m taking is to create an event tap that discards
I have an array of CGPoints, and I\'d like to fill the whole screen with colours, the colour of each pixel depending on the total distance to each of the points in the array. The natural way to do thi
While developing a rounded rectangle widget I encountered the follow开发者_Python百科ing problem: path built with arcs looks ugly when stroked.
This is quite the iPhone quandry.I am working on a library, but have narrowed down my problem to very simple code.What this code does is create a 50x50 view, applies a rotation transform of a few degr
I\'m using Mac OS X 10.6 SDK ImageKit\'s IKSaveOptions to add the file format accessory to an NSSavePanel using:
I have some a UIView with several user created subviews. The user can move and rotate the subviews. I\'m using the transform attribute of UIView to accomplish this. I want to save the \"document\" in