创建渐变颜色
来源:互联网 发布:aws azure 阿里云 编辑:程序博客网 时间:2024/05/17 07:39
CGGradientRef TableBackgroundGradient()
{
static CGGradientRef layoutGradient = NULL;
if (!layoutGradient)
{
UIColor *contentColorTop = [UIColor colorWithRed:0.90 green:0.92 blue:0.95 alpha:1.0];
UIColor *contentColorBottom = [UIColor colorWithRed:0.70 green:0.72 blue:0.75 alpha:1.0];
CGColorSpaceRef colorspace = CGColorSpaceCreateDeviceRGB();
CGFloat backgroundColorComponents[3][4];
memcpy(
backgroundColorComponents[0],
CGColorGetComponents(contentColorTop.CGColor),
sizeof(CGFloat) * 4);
memcpy(
backgroundColorComponents[1],
CGColorGetComponents(contentColorBottom.CGColor),
sizeof(CGFloat) * 4);
const CGFloat endpointLocations[2] = {0.0, 1.0};
layoutGradient =
CGGradientCreateWithColorComponents(
colorspace,
(const CGFloat *)backgroundColorComponents,
endpointLocations,
2);
CFRelease(colorspace);
}
return layoutGradient;
}
- 创建渐变颜色
- 创建渐变颜色
- UIBeziberPath创建颜色渐变图案
- 2.5 创建颜色渐变效果(xml配置文件)
- 颜色渐变
- 颜色渐变
- 颜色渐变
- 颜色渐变
- 颜色渐变
- 颜色渐变
- 颜色渐变
- 颜色渐变
- 使用CSS3创建文字颜色渐变(CSS3 Text Gradient)
- 使用CSS3创建文字颜色渐变(CSS3 Text Gradient)
- 使用CSS3创建文字颜色渐变(CSS3 Text Gradient)
- Android如何使用XML创建一个环形渐变颜色图片
- CSS3-颜色渐变--线性渐变+径向渐变
- css web 颜色渐变
- 如何将TrimPath用于JSP页面
- PostThreadMessage传递给线程中的响应函数OnSpatialQuery 可 lParam的值却为“1”。.
- maixmo增加一级菜单
- Quartz画图函数笔记
- django1.4新特性
- 创建渐变颜色
- 一些有意思的算法代码
- 同步、异步、阻塞、非阻塞 I/O 及 异步I/O实现
- 查找所有可执行文件的脚本
- boost::weak_ptr和enable_shared_from_this
- 三个有用的Switch命令:spanning-tree portfast、switchport host、smartport
- Drools入门-----------环境搭建,分析Helloworld
- no ip redirects no ip unreachables -----仅作参考
- 解决办法:Access restriction: The type JPEGImageEncoder is not accessible due to restriction on required