Hi ALL,
In my application i want to draw Bezier curves which includes Drawing rectangle,Square,and text
i am using view Based template in iphone application please can any body provide details regarding this, i have used code
CGRect rect =CGRectMake(10,20,300,300);
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextClearRect(ctx, rect);
CGContextSetRGBFillColor(ctx, 255, 0, 0, 1);
CGContextFillRect(ctx, CGRectMake(10, 10, 50, 50));
CGContextSetRGBFillColor(ctx, 0, 255, 0, 1);
CGContextFillEllipseInRect(ctx, CGRectMake(100, 100, 25, 25));
but its not drawing any thing on the screen, please any body provide tutorials from scratch to creat graphics.
thanks
santosh
In my application i want to draw Bezier curves which includes Drawing rectangle,Square,and text
i am using view Based template in iphone application please can any body provide details regarding this, i have used code
CGRect rect =CGRectMake(10,20,300,300);
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextClearRect(ctx, rect);
CGContextSetRGBFillColor(ctx, 255, 0, 0, 1);
CGContextFillRect(ctx, CGRectMake(10, 10, 50, 50));
CGContextSetRGBFillColor(ctx, 0, 255, 0, 1);
CGContextFillEllipseInRect(ctx, CGRectMake(100, 100, 25, 25));
but its not drawing any thing on the screen, please any body provide tutorials from scratch to creat graphics.
thanks
santosh