Hello everybody, i am very new to iphone programming so I have probably got the wrong end of the stick.
I can draw simple graphcs by doing a:
CGContextRef context = UIGraphicsGetCurrentContext();
then i can do a:
CGContextMoveToPoint(context, 10, 10);
CGContextAddLineToPoint(context, 20,20);
CGContextDrawPath(context,kCGPathFillStroke);
etc to draw simple shapes but where is the setpixel? I want to create a mandlebrot viewer as a learning excersize but i cant get very far without setpixel.
also, is there a simple way of passing a color to CGContextSetFillColorWithColor? without casting a UIcolor and CGColorRef?
I can draw simple graphcs by doing a:
CGContextRef context = UIGraphicsGetCurrentContext();
then i can do a:
CGContextMoveToPoint(context, 10, 10);
CGContextAddLineToPoint(context, 20,20);
CGContextDrawPath(context,kCGPathFillStroke);
etc to draw simple shapes but where is the setpixel? I want to create a mandlebrot viewer as a learning excersize but i cant get very far without setpixel.
also, is there a simple way of passing a color to CGContextSetFillColorWithColor? without casting a UIcolor and CGColorRef?