• 大小: 2.38M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2024-06-18
  • 语言: C#
  • 标签: winform  FORM  for  win  ORM  

资源简介

winform 皮肤

通过重写原生控件美化皮肤,每个控件都是独立的皮肤,可自由组合。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace CSharpSkin.Button
{
    #region  图片裁剪
    /// 
    /// WWW.CSharpSkin.COM
    /// 图片裁剪
    /// 

    public class BitmapCapture
    {
        #region  将一张图片裁剪为多个
        /// 
        /// 将一张图片裁剪为多个
        /// 

        /// 原始图片
        /// 横向分割多少份
        /// 纵向分割多少份
        /// 
        public static Bitmap[] Capture(Bitmap original int x int y)
        {
            Bitmap[] array = new Bitmap[y x];
            int num = original.Width / x;
            int num2 = original.Height / y;
            original.SetResolution(96f 96f);
            for (int i = 0; i < y; i++)
            {
                for (int j = 0; j < x; j++)
                {
                    Bitmap bitmap = new Bitmap(num num2);
                    Rectangle rect = new Rectangle(j * num i * num2 num num2);
                    bitmap = original.Clone(rect original.PixelFormat);
                    array[i j] = bitmap;
                    //bitmap.Dispose();
                }
            }
            return array;
        }
        #endregion
    }
    #endregion
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.    293888  2022-02-11 16:45  CSharpSkin\.vs\CSharpSkin\v15\.suo

    .......      1413  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\BitmapCapture.cs

    .......       639  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\ButtonState.cs

    .......     13871  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\Class\ControlPaint.cs

    .......      9587  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\Class\ControlRender.cs

    .......     11293  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\CSharpButton.cs

    .......     15697  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\CSharpImageButton.cs

    .......      7822  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\CSharpPictrueButton.cs

    .......       164  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\CSharpPictureButton.cs

    .......      2831  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\CSharpSkin.Button.csproj

    .......      4587  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\CSharpSwtichBox.cs

    .......      5910  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\Gdi\GraphicsPathManager.cs

    .......      1113  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\Gdi\Roundstyle.cs

     文件         42  2021-03-30 15:18  CSharpSkin\CSharpSkin\CSharpSkin.Button\obj\Debug\CSharpSkin.Button.csproj.CoreCompileInputs.cache

     文件       2592  2021-03-30 15:18  CSharpSkin\CSharpSkin\CSharpSkin.Button\obj\Debug\CSharpSkin.Button.csproj.FileListAbsolute.txt

     文件       8085  2021-03-30 15:18  CSharpSkin\CSharpSkin\CSharpSkin.Button\obj\Debug\CSharpSkin.Button.csprojAssemblyReference.cache

     文件      25088  2021-03-30 15:18  CSharpSkin\CSharpSkin\CSharpSkin.Button\obj\Debug\CSharpSkin.Button.dll

     文件      75264  2021-03-30 15:18  CSharpSkin\CSharpSkin\CSharpSkin.Button\obj\Debug\CSharpSkin.Button.pdb

    .......       745  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6807  2022-02-11 16:47  CSharpSkin\CSharpSkin\CSharpSkin.Button\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

    .......        41  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\obj\Release\CSharpSkin.Button.csproj.CoreCompileInputs.cache

    .......      1271  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\obj\Release\CSharpSkin.Button.csproj.FileListAbsolute.txt

    .......      8192  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\obj\Release\CSharpSkin.Button.dll

    .......     22016  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\obj\Release\CSharpSkin.Button.pdb

    .......      6775  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache

    .......      1291  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.Button\Properties\AssemblyInfo.cs

    .......       649  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.CheckBox\CheckBoxState.cs

    .......     16490  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.CheckBox\CSharpCheckBox.cs

    .......      2300  2019-11-06 14:13  CSharpSkin\CSharpSkin\CSharpSkin.CheckBox\CSharpSkin.CheckBox.csproj

     文件         42  2021-03-30 15:18  CSharpSkin\CSharpSkin\CSharpSkin.CheckBox\obj\Debug\CSharpSkin.CheckBox.csproj.CoreCompileInputs.cache

............此处省略663个文件信息

评论

共有 条评论