+ UITexture:增加主题背景纹理类

This commit is contained in:
Sunny 2021-12-10 10:58:24 +08:00
parent ec8e1a73df
commit b346a8e156
2 changed files with 35 additions and 0 deletions

Binary file not shown.

View File

@ -0,0 +1,35 @@
/******************************************************************************
* SunnyUI
* CopyRight (C) 2012-2021 ShenYongHua().
* QQ群56829229 QQ17612584 EMailSunnyUI@QQ.Com
*
* Blog: https://www.cnblogs.com/yhuse
* Gitee: https://gitee.com/yhuse/SunnyUI
* GitHub: https://github.com/yhuse/SunnyUI
*
* SunnyUI.dll can be used for free under the GPL-3.0 license.
* If you use this code, please keep this note.
* 使
******************************************************************************
* : UITexture.cs
* :
* : V3.0
* : 2020-12-10
*
* 2020-01-01: V3.0.9
******************************************************************************/
using System.Drawing;
namespace Sunny.UI
{
public static class UITexture
{
public static TextureBrush CreateTextureBrush(Image img)
{
TextureBrush tb = new TextureBrush(img);
tb.WrapMode = System.Drawing.Drawing2D.WrapMode.Tile;
return tb;
}
}
}