登录
首页 » C#源码 » C# 模糊文字 点击按钮文字模糊

C# 模糊文字 点击按钮文字模糊

于 2022-01-21 发布 文件大小:45.70 kB
0 137
下载积分: 2 下载次数: 1

代码说明:

C# 制作的模糊文字 点击按钮文字模糊效果,这是基于WPF的一个图像特效,将文字模糊显示,如图所示,运行本程序后,点击窗口中的按钮,即可将按钮中的文字模糊处理。下面来看具体的模糊按钮文字的实现代码:   if (((Button)sender).BitmapEffect != null)   {    ((Button)sender).BitmapEffect = null;   }   else   {    Button MyButton = (Button)sender;    var MyBlurEffect = new System.Windows.Media.Effects.BlurBitmapEffect();    MyBlurEffect.Radius = 4;    MyBlurEffect.KernelType = System.Windows.Media.Effects.KernelType.Box;    MyButton.BitmapEffect = MyBlurEffect;   }

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • C #串口
    基于C#的串口通信源码。。。。基于C#的串口通信源码。。。。基于C#的串口通信源码。。。。基于C#的串口通信源码。。。。基于C#的串口通信源码。。。。基于C#的串口通信源码。。。。基于C#的串口通信源码。。。。基于C#的串口通信源码。。。。
    2023-01-14 06:35:04下载
    积分:1
  • 《Visual.C#.编程精彩百例》配套随书光盘
    《Visual.C#.编程精彩百例》配套随书光盘源码,涉及到书中方方面面的实例,包括界面设计、数据库、系统控制、基础知识、算法、多媒体播放等众多类型的源代码,是学习C#基础编程很好的实例集。
    2023-09-09 21:35:05下载
    积分:1
  • C# 获取Access数据库的数据表名称
    C# 获取Access数据库的数据表名称,private void button1_Click(object sender, EventArgs e)   {//获取Access数据库的数据表名称    string MyAccessDBFile = @"F:Northwind.mdb";    string MyConnectString ="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" +MyAccessDBFile;    var MyConnection = new System.Data.OleDb.OleDbConnection(MyConnectString);    MyConnection.Open();    var MyTables = MyConnection.GetOleDbSchemaTable(System.Data.OleDb.OleDbSchemaGuid.Tables, new object[] { null, null, null, "TABLE" });    string MyInfo = MyAccessDBFile + "数据库的数据表包括:";    foreach (DataRow MyRow in MyTables.Rows)    {    string MyTable = MyRow["TABLE_NAME"].ToString();    MyInfo += MyTable + "、";    }    MessageBox.Show(MyInfo, "信息提示", MessageBoxButtons.OK);   }
    2023-01-05 19:40:03下载
    积分:1
  • 验证识别c#
    验证码识别c# 源码. 可以识别多重验证码。可以稍作修改识别更多的类型。已经使用过。可执行。 可以识别多重验证码。可以稍作修改识别更多的类型。已经使用过。可执行。
    2022-03-25 12:44:31下载
    积分:1
  • C# 获取本地打印服务器后台文件的路径
    Visual C# MyWinWPF.rar,核心代码分享如下:   private void button1_Click(object sender, RoutedEventArgs e)   {//获取本地打印服务器后台文件的路径    var MyPrintServer = new System.Printing.LocalPrintServer();    string MyInfo = "本地打印服务器后台文件的路径是:" + MyPrintServer.DefaultSpoolDirectory;    MessageBox.Show(MyInfo, "信息提示", MessageBoxButton.OK);   }
    2022-01-23 11:13:33下载
    积分:1
  • C# 读取GDI+图像元数据
    C# 读取GDI+图像元数据,比如可读取图片的长度和宽度/ID/类型等信息.
    2023-04-30 06:00:03下载
    积分:1
  • C# 用于视频播放器的TimeLine时间线
    C# 用于视频播放器的TimeLine时间线源码,时间线预览效果可运行文件在VideoEditor文件夹的Bin目录下,不过需要.NET Framework 4.7版本以上,源码资源文件,包括了图片资源,代码资源都齐全,在VS2016或更高版本下运行。   本例用时间线来演示播放进度,类似进度条的功能。
    2022-12-02 17:55:03下载
    积分:1
  • C#演示用Brush填充Rectangle图形
    C#画矩形,然后使用Brush填充Rectangle图形,单击按钮后会生成一个填充过的图形,需要创建Graphics对象,创建一个Brush对象,再使用Rectangle绘制一个矩形,然后使用Brush填充,实现这一过程,核心代码如下:   private void button1_Click(object sender, EventArgs e)   {    Graphics ghs = this.CreateGraphics();//创建Graphics对象    Brush mybs = new SolidBrush(Color.Red);//使用SolidBrush类创建一个Brush对象    Rectangle rt = new Rectangle(10, 10, 100, 100);//绘制一个矩形    ghs.FillRectangle(mybs, rt);//用Brush填充Rectangle   }
    2022-07-06 17:10:54下载
    积分:1
  • Visual C# 查询指定时间间隔的数据
    Visual C# 查询指定时间间隔的数据,根据学生出生年月查询学生年龄,代码如下:   private DataTable GetMessage()   {    string P_Str_ConnectionStr = string.Format(//创建数据库连接字符串    @"server=WIN-GI7E47AND9RLS;database=db_TomeTwo;uid=sa;pwd=");    string P_Str_SqlStr = string.Format(//创建SQL查询字符串    "select 学生姓名,出生年月 from tb_Student");    SqlDataAdapter P_SqlDataAdapter = new SqlDataAdapter(//创建数据适配器    P_Str_SqlStr, P_Str_ConnectionStr);    DataTable P_dt = new DataTable();//创建数据表    P_SqlDataAdapter.Fill(P_dt);//填充数据表    return P_dt;//返回数据表   }
    2022-03-02 08:45:17下载
    积分:1
  • C# 演示如何使用DataGridView更新数据
    C#更新修改DataGridView数据,请直接在DataGridView表格中修改数据,C# 更新DataGridView数据的实现代码如下:   private void button1_Click(object sender, EventArgs e)   {//更新数据    var MyCount = this.sqlDataAdapter1.Update(this.dataSet1, "Customers");    var MyInfo = "成功更新" + MyCount.ToString() + "条记录!";    MessageBox.Show(MyInfo, "信息提示", MessageBoxButtons.OK);   }   private void Form1_Load(object sender, EventArgs e)   {//读取Customers数据表记录    var MySQL = "Select * From Customers ";    this.sqlConnection1.ConnectionString = "Data Source=.SQLEXPRESS;Initial Catalog=Northwind;Integrated Security=True";    this.sqlCommand1 = new System.Data.SqlClient.SqlCommand("Select * From Employees", this.sqlConnection1);    this.sqlDataAdapter1 = new System.Data.SqlClient.SqlDataAdapter(this.sqlCommand1);    this.sqlCommandBuilder1 = new System.Data.SqlClient.SqlCommandBuilder(this.sqlDataAdapter1);    this.sqlDataAdapter1.Fill(this.dataSet1, "Customers");    this.dataGridView1.DataSource = this.dataSet1.Tables[0];
    2022-03-24 05:10:10下载
    积分:1
  • 696518资源总数
  • 105549会员总数
  • 12今日下载