iphone Programming Glossary: colorwithhue
How to programmatically change the hue of UIImage? http://stackoverflow.com/questions/11555071/how-to-programmatically-change-the-hue-of-uiimage drawAtPoint CGPointMake 0 0 Draw the hue on top of the image. CGContextSetBlendMode context kCGBlendModeHue UIColor colorWithHue hue saturation 1.0 brightness 1 alpha alpha set UIBezierPath imagePath UIBezierPath bezierPathWithRect imageExtent imagePath..
Applying a Gradient to CAShapeLayer http://stackoverflow.com/questions/4733966/applying-a-gradient-to-cashapelayer v.bounds.size.height NSMutableArray colors NSMutableArray array for int i 0 i 10 i colors addObject id UIColor colorWithHue 0.1 i saturation 1 brightness .8 alpha 1 CGColor gradientLayer.colors colors gradientLayer setMask gradientMask v.layer..
iOS: Positioning navigation bar buttons within custom navigation bar http://stackoverflow.com/questions/6169474/ios-positioning-navigation-bar-buttons-within-custom-navigation-bar void drawRect CGRect rect Change the tint color in order to change color of buttons UIColor color UIColor colorWithHue 0.0 saturation 0.0 brightness 0.0 alpha 0.0 self.tintColor color Add a custom background image to the navigation bar UIImage..
iOS - How to achieve emboss effect for the text on UILabel? http://stackoverflow.com/questions/8467141/ios-how-to-achieve-emboss-effect-for-the-text-on-uilabel 33 UIImage interiorShadowImage self imageWithInteriorShadowAndString string font font textColor UIColor colorWithHue 0 saturation .9 brightness .7 alpha 1 size rect.size UIImage finalImage self imageWithUpwardShadowAndImage interiorShadowImage..
Draw glow around inside edge of multiple CGPaths http://stackoverflow.com/questions/8480401/draw-glow-around-inside-edge-of-multiple-cgpaths self.imageView.bounds.size NO 0.0 self drawInnerGlowWithPaths paths bounds self.imageView.bounds color UIColor colorWithHue 0 saturation 1 brightness .8 alpha .8 offset CGSizeZero blur 10.0 imageView.image UIGraphicsGetImageFromCurrentImageContext..
UITableView section header is all black http://stackoverflow.com/questions/942834/uitableview-section-header-is-all-black init autorelease label.frame CGRectMake 20 6 300 30 label.backgroundColor UIColor clearColor label.textColor UIColor colorWithHue 136.0 360.0 Slightly bluish green saturation 1.0 brightness 0.60 alpha 1.0 label.shadowColor UIColor whiteColor label.shadowOffset..
|