没有合适的资源?快使用搜索试试~ 我知道了~
本文实例讲述了C#线性渐变画刷LinearGradientBrush用法。分享给大家供大家参考。具体如下: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Drawing.Drawing2D; namespace WindowsApplication2 { public partial
资源详情
资源评论
资源推荐
C#线性渐变画刷线性渐变画刷LinearGradientBrush用法实例用法实例
本文实例讲述了C#线性渐变画刷LinearGradientBrush用法。分享给大家供大家参考。具体如下:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Drawing2D;
namespace WindowsApplication2
{
public partial class Form8 : Form
{
public Form8()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
/*LinearGradientBrush brush = new LinearGradientBrush(this.ClientRectangle, Color.White, Color.Red, LinearGradientMode.Horizontal);
Graphics g = this.CreateGraphics();
g.FillRectangle(brush, 1, 1, 100, 100);
g.DrawString("zhuzhao", this.Font, brush, 1, 1);*/
/*LinearGradientBrush brush = new LinearGradientBrush(this.ClientRectangle, Color.White, Color.Red, LinearGradientMode.Horizontal);
brush.SetBlendTriangularShape(0.5f);
Graphics g = this.CreateGraphics();
g.FillRectangle(brush, 1, 1, 1000, 100);
g.DrawString("zhuzhao", this.Font, brush, 1, 1);*/
LinearGradientBrush brush = new LinearGradientBrush(this.ClientRectangle, Color.White, Color.Red, LinearGradientMode.Horizontal);
brush.SetSigmaBellShape(0.5f);
Graphics g = this.CreateGraphics();
g.FillRectangle(brush, 1, 1, 1000, 100);
g.DrawString("zhuzhao", this.Font, brush, 1, 1);
}
}
}
希望本文所述对大家的C#程序设计有所帮助。
您可能感兴趣的文章您可能感兴趣的文章:C#图像线性变换的方法c#泛型学习详解 创建线性链表C#数据结构与算法揭秘二 线性结构C#运算符重载
用法实例分析C#中矩阵运算方法实例分析C#中的除法运算符与VB.NET中的除法运算符C# 基础之运算符C#排序算法的比较分
析C#直线的最小二乘法线性回归运算实例
weixin_38711008
- 粉丝: 8
- 资源: 939
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0