Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 06-30-2009, 12:05 AM   #6 (permalink)
rkp01_jec
Registered Member
 
Join Date: Oct 2008
Posts: 15
Default

FYI to draw a line
This code constructs a triangle from a set of three lines.

// Draw a purple triangle with using lines
CGContextSetRGBStrokeColor(ctx, 255, 0, 255, 1);
CGPoint points[6] = { CGPointMake(100, 200), CGPointMake(150, 250),
CGPointMake(150, 250), CGPointMake(50, 250),
CGPointMake(50, 250), CGPointMake(100, 200) };
CGContextStrokeLineSegments(ctx, points, 6);


u can set any point to draw graph
rkp01_jec is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,725
Threads: 89,183
Posts: 380,510
Top Poster: BrianSlick (7,126)
Welcome to our newest member, boltdozer
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:01 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.