资源简介

pictiuebox效率低,这里使用高效重绘方法,vs2017,代码很短,鼠标判断等就200行,只使用了panel 实现。

可添加多个图像元素,移动元素并调整元素图层。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace Demo_1
{
    public partial class Form1 : Form
    {
        public class PanelEx : Panel
        {
            public PanelEx()
            {
                Setstyle(
                    Controlstyles.AllPaintingInWmPaint |
                    Controlstyles.OptimizedDoubleBuffer |
                    Controlstyles.ResizeRedraw |
                    Controlstyles.SupportsTransparentBackColor |
                    Controlstyles.UserPaint
                    true
                    );
                Updatestyles();
            }
        }

        public abstract class Draggableobject
        {
            public abstract string Id { get; set; }
       

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

    ..A..H.     33280  2019-06-09 18:43  Demo_1\.vs\Demo_1\v15\.suo

     文件          0  2019-06-09 14:22  Demo_1\.vs\Demo_1\v15\Server\sqlite3\db.lock

     文件     585728  2019-06-09 18:17  Demo_1\.vs\Demo_1\v15\Server\sqlite3\storage.ide

     文件      32768  2019-06-09 17:23  Demo_1\.vs\Demo_1\v15\Server\sqlite3\storage.ide-shm

     文件    4128272  2019-06-09 18:43  Demo_1\.vs\Demo_1\v15\Server\sqlite3\storage.ide-wal

     文件        189  2019-06-09 14:22  Demo_1\Demo_1\App.config

     文件      53060  2019-06-09 15:42  Demo_1\Demo_1\bin\Debug\01.jpg

     文件     107092  2019-06-09 15:42  Demo_1\Demo_1\bin\Debug\02.png

     文件     279992  2019-03-09 16:42  Demo_1\Demo_1\bin\Debug\back.jpg

     文件      12800  2019-06-09 18:42  Demo_1\Demo_1\bin\Debug\Demo_1.exe

     文件        189  2019-06-09 14:22  Demo_1\Demo_1\bin\Debug\Demo_1.exe.config

     文件      36352  2019-06-09 18:42  Demo_1\Demo_1\bin\Debug\Demo_1.pdb

     文件       3483  2019-06-09 14:22  Demo_1\Demo_1\Demo_1.csproj

     文件       8508  2019-06-09 18:43  Demo_1\Demo_1\Form1.cs

     文件       1228  2019-06-09 14:22  Demo_1\Demo_1\Form1.Designer.cs

     文件         42  2019-06-09 17:34  Demo_1\Demo_1\obj\Debug\Demo_1.csproj.CoreCompileInputs.cache

     文件        399  2019-06-09 17:34  Demo_1\Demo_1\obj\Debug\Demo_1.csproj.FileListAbsolute.txt

     文件        954  2019-06-09 17:34  Demo_1\Demo_1\obj\Debug\Demo_1.csproj.GenerateResource.cache

     文件      12800  2019-06-09 18:42  Demo_1\Demo_1\obj\Debug\Demo_1.exe

     文件      36352  2019-06-09 18:42  Demo_1\Demo_1\obj\Debug\Demo_1.pdb

     文件        180  2019-06-09 17:34  Demo_1\Demo_1\obj\Debug\Demo_1.Properties.Resources.resources

     文件        831  2019-06-09 14:22  Demo_1\Demo_1\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7064  2019-06-09 14:22  Demo_1\Demo_1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2019-06-09 14:22  Demo_1\Demo_1\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2019-06-09 14:22  Demo_1\Demo_1\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2019-06-09 14:22  Demo_1\Demo_1\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件        518  2019-06-09 14:22  Demo_1\Demo_1\Program.cs

     文件       1310  2019-06-09 14:22  Demo_1\Demo_1\Properties\AssemblyInfo.cs

     文件       2825  2019-06-09 14:22  Demo_1\Demo_1\Properties\Resources.Designer.cs

     文件       5612  2019-06-09 14:22  Demo_1\Demo_1\Properties\Resources.resx

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

评论

共有 条评论