91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 325KB
    文件類型: .zip
    金幣: 2
    下載: 2 次
    發布日期: 2021-09-06
  • 語言: C#
  • 標簽: 歌詞顯示??

資源簡介

基于C#語言開發的歌詞顯示... 和KUGOU 類似噢 。。。

資源截圖

代碼片段和文件信息

using?System;
using?System.Drawing;
using?System.Drawing.Drawing2D;
using?System.Drawing.Imaging;
using?System.Runtime.InteropServices;
using?System.Windows.Forms;

namespace?LyricShow
{
????public?partial?class?frmDesktopLyric?:?Form
????{
????????public?frmDesktopLyric()
????????{
????????????InitializeComponent();

????????????//將窗體設置為支持透明背景
????????????this.Setstyle(Controlstyles.SupportsTransparentBackColor?true);
????????}

????????bool?enter?=?false;?internal?bool?trans?=?false;?????//鼠標是否已經移入歌詞區域、鼠標穿透是否已經開啟
????????internal?Bitmap?oldbitmap?=?new?Bitmap(1?1);????????//最后設置的位圖
????????internal?string?cache?=?““;??????????????????????????//最后設置的文本
????????internal?Color?border?=?Color.Black;?????????????????//邊框顏色

????????#region?屬性
????????protected?override?CreateParams?CreateParams
????????{
????????????get
????????????{
????????????????//重新定義窗體樣式
????????????????CreateParams?cp?=?base.CreateParams;
????????????????cp.Exstyle?|=?0x00080000;
????????????????return?cp;
????????????}
????????}
????????#endregion
????????#region?方法
????????private?void?CanPenetrate()
????????{
????????????//將窗體設置為鼠標可穿透
????????????uint?intExTemp?=?Win32.GetWindowLong(this.Handle?Win32.GWL_EXstyle);
????????????uint?oldGWLEx?=?Win32.SetWindowLong(this.Handle?Win32.GWL_EXstyle?Win32.WS_EX_TRANSPARENT?|?Win32.WS_EX_layerED);
????????????trans?=?true;
????????}

????????private?void?CancelPenetrate()
????????{
????????????//將窗體設置為鼠標不可穿透
????????????Win32.SetWindowLong(this.Handle?Win32.GWL_EXstyle?Win32.WS_EX_layerED);
????????????trans?=?false;
????????}

????????internal?void?Penetrate()
????????{
????????????//打開或關閉鼠標穿透
????????????if?(trans)?CancelPenetrate();
????????????else?CanPenetrate();
????????}

????????internal?void?SetBitmap(Bitmap?bitmap)
????????{
????????????SetBitmap(bitmap?255);
????????}

????????internal?void?SetBitmap(Bitmap?bitmap?byte?opacity)
????????{
????????????//設置位圖

????????????oldbitmap?=?bitmap;????//更新緩存
????????????if?(enter)
????????????{
????????????????//如果鼠標已經移入,重繪位圖,在bitmat之后增加背景
????????????????Bitmap?b?=?new?Bitmap(bitmap.Width?bitmap.Height);
????????????????Graphics?g?=?Graphics.FromImage(b);
????????????????GraphicsPath?roundedRect?=?new?GraphicsPath();
????????????????Rectangle?rect?=?new?Rectangle(0?0?bitmap.Width?-?1?bitmap.Height?-?1);
????????????????int?cornerRadius?=?5;
????????????????g.SmoothingMode?=?SmoothingMode.AntiAlias;
????????????????roundedRect.AddArc(rect.X?rect.Y?cornerRadius?*?2?cornerRadius?*?2?180?90);
????????????????roundedRect.AddLine(rect.X?+?cornerRadius?rect.Y?rect.Right?-?cornerRadius?*?2?rect.Y);
????????????????roundedRect.AddArc(rect.X?+?rect.Width?-?cornerRadius?*?2?rect.Y?cornerRadius?*?2?cornerRadius?*?2?270?90);
????????????????roundedRect.AddLine(rect.Right?rect.Y?+?cornerRadius?*?2?rect.Right?rect.Y?+?rect.Height?-?cornerRadius?*?2);
????????????????roundedRect.AddArc(r

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2011-03-05?13:10??LyricShow\
?????目錄???????????0??2011-03-05?13:10??LyricShow\LyricShow\
?????文件????????1410??2010-07-20?10:42??LyricShow\LyricShow.sln
?????文件???????26112??2011-01-10?19:16??LyricShow\LyricShow.suo
?????目錄???????????0??2011-03-05?13:10??LyricShow\LyricShowTest\
?????目錄???????????0??2011-03-05?13:10??LyricShow\LyricShowTest\bin\
?????目錄???????????0??2011-03-05?13:10??LyricShow\LyricShowTest\bin\Debug\
?????文件???????61440??2010-07-20?10:43??LyricShow\LyricShowTest\bin\Debug\AxInterop.WMPLib.dll
?????文件??????339968??2010-07-20?10:43??LyricShow\LyricShowTest\bin\Debug\Interop.WMPLib.dll
?????文件???????21504??2010-07-20?11:17??LyricShow\LyricShowTest\bin\Debug\LyricShow.dll
?????文件???????46592??2010-07-20?11:17??LyricShow\LyricShowTest\bin\Debug\LyricShow.pdb
?????文件???????11776??2010-07-20?11:19??LyricShow\LyricShowTest\bin\Debug\LyricShowTest.exe
?????文件???????26112??2010-07-20?11:19??LyricShow\LyricShowTest\bin\Debug\LyricShowTest.pdb
?????文件???????14328??2011-01-10?19:12??LyricShow\LyricShowTest\bin\Debug\LyricShowTest.vshost.exe
?????文件?????????490??2007-07-21?01:33??LyricShow\LyricShowTest\bin\Debug\LyricShowTest.vshost.exe.manifest
?????文件????????1594??2010-07-20?11:19??LyricShow\LyricShowTest\Form1.cs
?????文件????????6971??2010-07-20?11:19??LyricShow\LyricShowTest\Form1.Designer.cs
?????文件????????6704??2010-07-20?11:19??LyricShow\LyricShowTest\Form1.resx
?????文件????????4271??2010-07-20?10:49??LyricShow\LyricShowTest\LyricShowTest.csproj
?????目錄???????????0??2011-03-05?13:10??LyricShow\LyricShowTest\obj\
?????目錄???????????0??2011-03-05?13:10??LyricShow\LyricShowTest\obj\Debug\
?????文件???????61440??2010-07-20?10:43??LyricShow\LyricShowTest\obj\Debug\AxInterop.WMPLib.dll
?????文件??????274432??2011-01-10?15:48??LyricShow\LyricShowTest\obj\Debug\Interop.WMPLib.dll
?????文件????????2235??2011-01-10?19:12??LyricShow\LyricShowTest\obj\Debug\LyricShowTest.csproj.FileListAbsolute.txt
?????文件?????????847??2010-07-20?11:19??LyricShow\LyricShowTest\obj\Debug\LyricShowTest.csproj.GenerateResource.Cache
?????文件?????????634??2011-01-10?15:48??LyricShow\LyricShowTest\obj\Debug\LyricShowTest.csproj.ResolveComReference.cache
?????文件???????11776??2010-07-20?11:19??LyricShow\LyricShowTest\obj\Debug\LyricShowTest.exe
?????文件?????????737??2010-07-20?11:19??LyricShow\LyricShowTest\obj\Debug\LyricShowTest.Form1.resources
?????文件???????26112??2010-07-20?11:19??LyricShow\LyricShowTest\obj\Debug\LyricShowTest.pdb
?????文件?????????180??2010-07-20?11:17??LyricShow\LyricShowTest\obj\Debug\LyricShowTest.Properties.Resources.resources
?????文件????????5154??2010-07-20?11:17??LyricShow\LyricShowTest\obj\Debug\ResolveAssemblyReference.cache
............此處省略32個文件信息

評論

共有 條評論