国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 編程 > C# > 正文

C#線性漸變畫(huà)刷LinearGradientBrush用法實(shí)例

2020-01-24 01:45:34
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

本文實(shí)例講述了C#線性漸變畫(huà)刷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);    }  }}

希望本文所述對(duì)大家的C#程序設(shè)計(jì)有所幫助。

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 德安县| 大荔县| 忻城县| 华蓥市| 定远县| 新昌县| 黎平县| 屏南县| 巧家县| 仙游县| 汤阴县| 波密县| 南溪县| 陆丰市| 汾西县| 汽车| 宁远县| 仁化县| 长乐市| 读书| 阳江市| 博湖县| 喀喇沁旗| 伊宁县| 芜湖县| 马龙县| 涞源县| 塔河县| 白玉县| 武鸣县| 新田县| 威海市| 耿马| 朝阳县| 白城市| 建平县| 清镇市| 荆门市| 德昌县| 都兰县| 西吉县|