Created
March 1, 2014 18:17
-
-
Save ChristianSch/9294444 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Startpunkt | |
CGPoint start = CGPointMake(100, 100); | |
// Endpunkt | |
CGPoint end = CGPointMake(100, 200); | |
// Quartz den Beginn eines neuen Pfades (unserer Linie) signalisieren | |
CGContextBeginPath(context); | |
// Linienanfang setzen | |
CGContextMoveToPoint(context, start.x, start.y); | |
// Linienende setzen | |
CGContextAddLineToPoint(context, end.x, end.y); | |
// Fertig mit der Pfaderstellung! Nun soll die Linie auch gezeichnet werden. | |
CGContextStrokePath(context); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment