1 R/G/B Anteil aus UIColor 14. April 2012, 18:55 Hallo Entwickler, wie bekommt man am besten den Rot/Grün/Blau Anteil aus einer UIColor heraus?
2 14. April 2012, 19:01 developer.apple.com/library/io…/getRed:green:blue:alpha: „Meine Komplikation hatte eine Komplikation.“
4 14. April 2012, 19:03 DroneDeveloper schrieb: Google? Warum Google? Warum nicht direkt die Apple Dokumentation? Michael
5 14. April 2012, 20:57 Hab es jetzt so gelöst: Quellcode const CGFloat *cgfComponents = CGColorGetComponents(myUIColor.CGColor); int iRed = cgfComponents[0]; int iGreen = cgfComponents[1]; int iBlue = cgfComponents[2];
6 14. April 2012, 21:16 Das funktioniert aber nur im RGB-Farbraum. Bei CMYK oder HSB bekommst Du nicht das, was Du willst. „Meine Komplikation hatte eine Komplikation.“
7 15. April 2012, 12:38 ??? UIColor hat doch dafür eine Methode. Wieso über CGColor gehen? Die Objective-Cloud ist fertig wenn sie fertig ist. Beta heißt Beta. Objective-C und Cocoa Band 2: Fortgeschrittene Cocoa/Objective-C Seminare von [co coa:ding].
9 15. April 2012, 12:43 Zumal ich ihm die Methode bereits genannt habe... „Meine Komplikation hatte eine Komplikation.“