Stroking or Filling with a Gradient Color
来源:互联网 发布:三级域名有哪些 编辑:程序博客网 时间:2024/05/21 17:11
Color startColor = Color.red;
Color endColor = Color.blue;
// A non-cyclic gradient
GradientPaint gradient = new GradientPaint(
startX, startY, startColor,
endX, endY, endColor);
g2d.setPaint(gradient);
drawShape(g2d);
// A cyclic gradient
gradient = new GradientPaint(
startX, startY, startColor,
endX, endY, endColor, true);
g2d.setPaint(gradient);
drawShape(g2d);
- Stroking or Filling with a Gradient Color
- Stroking or Filling with a Color:画或填充一种颜色
- Stroking or Filling a Shape:画图或填充图形
- Filling the Web page with a splitter
- Drawing With A Color
- Flex Box Color Gradient
- Drawing a Color Hue Wheel with C#
- WTL-Draw a bitmap with transparent color
- EU4-23: Filling a prescription
- 精图规范1.0----11 绘制:填充、描边和标记符号 Painting: Filling, Stroking and Marker Symbols
- Filling
- Opencv— — Color Gradient
- Conclusion: How to create a color Bitmap with CreateCompatibleBitmap
- 图像处理------颜色梯度变化 (Color Gradient)
- 图像处理------颜色梯度变化 (Color Gradient)
- <item> tag requires a 'color' attribute or child tag defining a drawable
- How to Make Custom Drawn Gradient Backgrounds in a Grouped UITableView with Core Graphics
- Ch8.6: write a method to paint-fill a closed ring with the same color
- 只有2个自己写的类的struts
- 个人收集的一个比较喜欢的词句
- 运行程序
- 十年总结(11):2004年春,揣着一颗创业的心去打工
- 溢出漏洞攻击原理与防护方法
- Stroking or Filling with a Gradient Color
- .NET 事件模型教程(一)
- .NET 事件模型教程(二)
- java思想之复用类 chapter 6
- .NET 事件模型教程(三)
- 校内
- 有关回文数的一个问题
- Javascript调用OCX控件
- 代码片断:在Ruby中产生随机的密码