欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

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

 更新時(shí)間:2015年06月11日 15:09:29   作者:zhuzhao  
這篇文章主要介紹了C#線性漸變畫刷LinearGradientBrush用法,實(shí)例分析了線性漸變畫刷LinearGradientBrush的相關(guān)使用技巧,需要的朋友可以參考下

本文實(shí)例講述了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);
    }
  }
}

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

相關(guān)文章

最新評(píng)論