Pages
-
Recent Posts
Tags
applescript App Store backups bash Brick Wall bugs C Casey checkinstall Chef's Book Clocks Cooking Core-Data Core Graphics Dynamic Drawing games gdb git gym Icons ImageMagick iOS ipad iphone MagickWand migrations Music ncurses NSManagedObject objective-c OCR OpenCV Optical Character Recognition packaging Photography Programming Puzzles Rsync source sudoku Time Ubuntu UITextField utility XCode
Tag Archives: Dynamic Drawing
Following on from dynamic clocks.
It would also be nice to draw multiple clocks if one is ‘full’ it starts another. This example draws and returns a maximum of three clocks but always returns a 90×30 image: – (UIImage *)drawClocks:(NSNumber *)time { UIImage *image; int … Continue reading →
Posted in Programming
|
Tagged Clocks, Core Graphics, Dynamic Drawing, Icons, iOS, objective-c, Time
|
Leave a comment
Drawing little clock icons dynamically.
It’s kind of nice to be able to dynamically draw little ‘clock’ time icons. This function returns a UIImage of 30×30 pixels containing such an image: static inline float radians(double degrees) { return (degrees * M_PI) / 180; } – … Continue reading →
Posted in Programming
|
Tagged Clocks, Core Graphics, Dynamic Drawing, Icons, iOS, objective-c, Time
|
1 Comment