-
qt webengine写的浏览器
qt 5.9 webengine浏览器源码,支持标签浏览、收藏夹、下载、查看源文件等功能,需要的朋友拿去用,谢谢。
- 2022-02-13 21:26:48下载
- 积分:1
-
C#播放wmv视频并填充到文字轮廓中
C#播放wmv视频并填充到文字轮廓中,这个应该是一个艺术字效果吧,本程序实现了两个功能:一、视频文件播放功能(wmv),二、将视频影像填充到文字轮廓中显示,这个就有意思了,最终实现了比较动感的艺术字动画效果,在视频播放方面,主要使用MediaElement();实现,文字填充方面,基于TextBlock.Foreground实现,下面是具体一些的代码:
使用视频剪辑填充文字的线条
MediaElement MyMediaElement = new MediaElement();
MyMediaElement.Source = new Uri("Bear.wmv", UriKind.Relative);
MyMediaElement.IsMuted = true;
VisualBrush MyVisualBrush = new VisualBrush();
MyVisualBrush.Visual = MyMediaElement;
TextBlock MyTextBlock = new TextBlock();
MyTextBlock.FontFamily = new FontFamily("宋体");
MyTextBlock.FontSize = 180;
MyTextBlock.Text = "编程";
MyTextBlock.FontWeight = FontWeights.Bold;
MyTextBlock.Foreground = MyVisualBrush;
this.Content = MyTextBlock;
运行截图如下,不过本站截图是静态的,看不到本示例的动画效果,请下载源码在VS中编译运行,查看效果。
- 2022-01-26 01:31:34下载
- 积分:1
-
7Zip
This file is part of SevenZipSharp. SevenZipSharp is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. SevenZipSharp is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with SevenZipSharp. If not, see .
- 2022-07-20 00:09:31下载
- 积分:1
-
IFC文件解析,c#实现
IFC文件解析,c#实现,实现了IFC文件解析并显示,提供给大家,希望对大家有用,好好学习,天天向上!!
- 2022-03-14 12:28:15下载
- 积分:1
-
halcon+c# 机器视觉检测水位测量
halcon+c#配合使用,很好的例子,代码可以直接运行,很适合初学者学习使用,学习
- 2023-03-29 09:50:03下载
- 积分:1
-
C# 键盘Ctrl+g控制蜂鸣器播放声音
Visual C#播放声音,运行程序后,操作键盘上的Ctrl+g组合键发出蜂鸣声...这里的拖放声音是蜂鸣声,从音箱里发出,并不是从机箱的蜂鸣器发声。实现的过程和细节代码如下:
//导入 Windows Beep() API 函数
[DllImport("kernel32.dll")]
private static extern bool Beep(int freq, int dur);
// 定义PlaySound()要使用的常数
public const int SND_FILENAME = 0x00020000;
public const int SND_ASYNC = 0x0001;
// 导入 Windows PlaySound() 函数
[DllImport("winmm.dll")]
public static extern bool PlaySound(string pszSound,
int hmod,
int fdwSound);
[STAThread]
static void Main(string[] args)
{
// 使用Ctrl+g发出蜂鸣声
Console.Write("a");
Console.WriteLine("使用Ctrl+g发出蜂鸣声...");
Console.ReadLine();
// 使用 Windows API 发出蜂鸣声
Beep(800, 200);
Console.WriteLine("使用 Windows API 发出蜂鸣声...");
Console.ReadLine();
// 播放bells.wav文件
PlaySound("bells.wav",
0,
SND_FILENAME | SND_ASYNC);
Console.WriteLine("播放bells.wav文件...");
Console.ReadLine();
}
- 2022-05-23 17:14:52下载
- 积分:1
-
C# 模拟实现SSH命令
C# 模拟实现SSH命令,模拟实现LINUX相关操作,代码中包括了英文注释,代码比较完整,压缩包中还包括了例子和Bin可执行文件,演示效果如截图所示。我看到模拟程序中使用了以下的类库:DiffieHellman.dll、Org.Mentalis.Security.dll、Tamir.SharpSSH.dll。
- 2022-01-26 08:34:51下载
- 积分:1
-
C# 使用IPEndPoint类获取终结点的IP地址和端口号
Visual C# UseIPEndPoint例子,使用IPEndPoint类对象获取终结点的IP地址和端口号,运行生成的Exe文件,得到的结果如图所示:
以下是实现本功能的关键代码:
先实例化IPEndPoint类对象:
IPEndPoint IPEPoint = new IPEndPoint(IPAddress.Parse(textBox1.Text), 80);
//使用IPEndPoint类对象获取终结点的IP地址和端口号
label2.Text = "IP地址:"+IPEPoint.Address.ToString() + "
端口号:" + IPEPoint.Port;
- 2022-01-28 05:14:25下载
- 积分:1
-
C# GroupBy将字符串数组按元素长度分组
C#演示 GroupBy字符串操作范例,C# GroupBy将字符串数组按元素长度分组:
string[] Words = new string[] { "what", "is", "your", "name", "?", "my", "name", "is", "lyf", "." };
var Groups = from word in Words
group word by word.Length into lengthGroups//按单词长度将单词分组
orderby lengthGroups.Key descending//按单词长度降序排列
select new
{
Length = lengthGroups.Key,//取单词长度
WordCollect = lengthGroups//取该长度的单词分组集合
};最后使用foreach循环遍历每组单词,将罗列出包括指定字符的单词是哪几个。
- 2023-08-16 01:45:03下载
- 积分:1
-
C# 把listView数据排列成图标缩略图风格
C#控制ListView的显示方式,把listView数据排列成图标缩略图风格,这种风格在Windows中十常见,图标的排列就是这种风格的,实现的相关代码:
private void Form1_Load(object sender, EventArgs e)
{
listView1.Items.Add("开源爱好者");//使用Add方法向控件中添加项目
listView1.Items.Add("www.codesc.net");//使用Add方法向控件中添加项目
listView1.Items.Add("C#从基础到项目实战");//使用Add方法向控件中添加项目
listView1.Items[2].Selected = true;//使用Selected方法选中第3项
}
- 2023-06-24 02:00:03下载
- 积分:1