iphone Programming Glossary: glossgradient
How to get UILabel (UITextView) auto adjusted font size? http://stackoverflow.com/questions/3669844/how-to-get-uilabel-uitextview-auto-adjusted-font-size get proper size of the adjusted font...Is it even possible draw gradient CGContextSaveGState myContext CGGradientRef glossGradient CGColorSpaceRef rgbColorspace size_t num_locations 2 CGFloat locations 2 0.0 1.0 CGFloat components 8 1 1 1 0.25 BOTTOM.. myContext CGContextClipToMask myContext rect alphaMask rgbColorspace CGColorSpaceCreateDeviceRGB glossGradient CGGradientCreateWithColorComponents rgbColorspace components locations num_locations gradient should be sized to actual.. CGRectGetMidX currentBounds CGRectGetMidY currentBounds fontCapHeightHalf CGContextDrawLinearGradient myContext glossGradient topCenter midCenter 0 CGGradientRelease glossGradient CGColorSpaceRelease rgbColorspace CGContextRestoreGState myContext..
iPhone Glossy Icons Using Core Graphics http://stackoverflow.com/questions/5541457/iphone-glossy-icons-using-core-graphics context UIImage applyIconHighlightToImage UIImage icon UIImage newImage CGContextRef context CGGradientRef glossGradient CGColorSpaceRef rgbColorspace CGRect currentBounds CGRectMake 0 0 icon.size.width icon.size.height CGPoint topCenter CGPointMake.. currentBounds addGlossPath context currentBounds CGContextClip context rgbColorspace CGColorSpaceCreateDeviceRGB glossGradient CGGradientCreateWithColorComponents rgbColorspace components locations 2 CGContextDrawLinearGradient context glossGradient.. CGGradientCreateWithColorComponents rgbColorspace components locations 2 CGContextDrawLinearGradient context glossGradient topCenter midCenter 0 UIGraphicsPopContext newImage UIGraphicsGetImageFromCurrentImageContext CGGradientRelease glossGradient..
|