iphone Programming Glossary: cggradientcreatewithcolorcomponents
How do I add a gradient to the text of a UILabel, but not the background? http://stackoverflow.com/questions/1266179/how-do-i-add-a-gradient-to-the-text-of-a-uilabel-but-not-the-background components 8 1.0 1.0 1.0 1.0 Start color 1.0 1.0 1.0 0.1 End color rgbColorspace CGColorSpaceCreateDeviceRGB gradient CGGradientCreateWithColorComponents rgbColorspace components locations num_locations CGRect currentBounds self.bounds CGPoint topCenter CGPointMake CGRectGetMidX..
How to draw a gradient line (fading in/out) with Core Graphics/iPhone? http://stackoverflow.com/questions/1303855/how-to-draw-a-gradient-line-fading-in-out-with-core-graphics-iphone 2 CGFloat locations 2 1.0 0.0 CGFloat components 8 0.0 0.0 0.0 1.0 1.0 1.0 1.0 1.0 CGGradientRef myGradient CGGradientCreateWithColorComponents myColorspace components locations num_locations CGPoint myStartPoint myEndPoint myStartPoint.x 0.0 myStartPoint.y 0.0 myEndPoint.x..
UINavigationBar gradient details http://stackoverflow.com/questions/1852319/uinavigationbar-gradient-details myColorspace CGColorSpaceCreateDeviceRGB CGFloat topComponents 8 LIGHT_COLOR_COMPONENTS CGGradientRef topGradient CGGradientCreateWithColorComponents myColorspace topComponents locations 2 CGContextDrawLinearGradient context topGradient CGPointMake 0 0 CGPointMake 0 self.frame.size.height.. 2 0 CGGradientRelease topGradient CGFloat botComponents 8 MAIN_COLOR_COMPONENTS CGGradientRef botGradient CGGradientCreateWithColorComponents myColorspace botComponents locations 2 CGContextDrawLinearGradient context botGradient CGPointMake 0 self.frame.size.height..
Applying background gradient to a Grouple table cell http://stackoverflow.com/questions/1979165/applying-background-gradient-to-a-grouple-table-cell Blue Alpha. 0.9f 0.9f 0.9f 1.0 Top Colour Red Green Blue Alpha. myColorspace CGColorSpaceCreateDeviceRGB myGradient CGGradientCreateWithColorComponents myColorspace components locations num_locations CGColorSpaceRelease myColorspace CGPoint startPoint endPoint startPoint.x..
Smoothing a rounded stroke in Core Graphics http://stackoverflow.com/questions/2181279/smoothing-a-rounded-stroke-in-core-graphics 1.0 CGFloat mycomponents 8 TABLE_CELL_BACKGROUND CGColorSpaceRef myColorspace CGColorSpaceCreateDeviceRGB myGradient CGGradientCreateWithColorComponents myColorspace mycomponents locations 2 CGContextDrawLinearGradient c myGradient CGPointMake minx miny CGPointMake minx maxy..
UIView border with fade or blur effect http://stackoverflow.com/questions/2306043/uiview-border-with-fade-or-blur-effect kCGImageAlphaPremultipliedLast CGFloat colors 0.5 0.5 0.5 0.0 BLACK 0.0 0.0 0.0 1.0 BLACK CGGradientRef gradient CGGradientCreateWithColorComponents colorSpace colors NULL sizeof colors sizeof colors 0 4 CGColorSpaceRelease colorSpace NSUInteger gradientH 20 NSUInteger..
How to fill a path with gradient in drawRect:? http://stackoverflow.com/questions/2985359/how-to-fill-a-path-with-gradient-in-drawrect colors 1.0 1.0 1.0 1.0 1.0 0.0 0.0 1.0 CGColorSpaceRef baseSpace CGColorSpaceCreateDeviceRGB CGGradientRef gradient CGGradientCreateWithColorComponents baseSpace colors NULL 2 CGColorSpaceRelease baseSpace baseSpace NULL CGContextRef context UIGraphicsGetCurrentContext CGContextSaveGState..
How to get UILabel (UITextView) auto adjusted font size? http://stackoverflow.com/questions/3669844/how-to-get-uilabel-uitextview-auto-adjusted-font-size myContext CGContextClipToMask myContext rect alphaMask rgbColorspace CGColorSpaceCreateDeviceRGB glossGradient CGGradientCreateWithColorComponents rgbColorspace components locations num_locations gradient should be sized to actual font size. THIS IS THE PROBLEM EVEN..
Change background color of UIButton when Highlighted http://stackoverflow.com/questions/4022763/change-background-color-of-uibutton-when-highlighted 1 bottomGradientColorComponents 2 bottomGradientColorComponents 3 CGGradientRef gradient CGGradientCreateWithColorComponents rgb colors NULL sizeof colors sizeof colors 0 4 CGColorSpaceRelease rgb CGContextDrawLinearGradient ctx gradient CGPointMake..
iPhone Glossy Icons Using Core Graphics http://stackoverflow.com/questions/5541457/iphone-glossy-icons-using-core-graphics addGlossPath context currentBounds CGContextClip context rgbColorspace CGColorSpaceCreateDeviceRGB glossGradient CGGradientCreateWithColorComponents rgbColorspace components locations 2 CGContextDrawLinearGradient context glossGradient topCenter midCenter 0 UIGraphicsPopContext..
Make Background of UIView a Gradient Without Sub Classing http://stackoverflow.com/questions/844710/make-background-of-uiview-a-gradient-without-sub-classing CGFloat locationList 0.0f 1.0f CGFloat colorList 0.0f 0.0f 0.0f 1.0f 0.0f 0.0f 0.0f 0.0f CGGradientRef myGradient CGGradientCreateWithColorComponents colorSpace colorList locationList 2 Draw Gradient Here CGContextDrawLinearGradient bitmapContext myGradient CGPointMake..
|