⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wndlessimage.cs

📁 破解的飞信源代码
💻 CS
字号:
namespace Imps.Client.Pc.BizControls
{
    using Imps.Client.Pc;
    using System;
    using System.Drawing;

    public class WndlessImage : XFormWndlessControl
    {
        protected System.Drawing.Image _image;
        private Color _transColor;

        public override void Dispose()
        {
            this._image.Dispose();
        }

        public override void MouseDblClick(EventArgs e)
        {
            if (base.Visible)
            {
                base.RaiseDoubleClick(base._parent, e);
            }
        }

        public override void OnPaint(Graphics g, Rectangle clipRectangle)
        {
            if (base.Visible)
            {
                Rectangle rect = base.Rectangle;
                if (clipRectangle.IntersectsWith(rect) && (this._image != null))
                {
                    DrawHelper.DrawImage(g, this._image, rect, this.TransColor);
                }
            }
        }

        public System.Drawing.Image Image
        {
            get
            {
                return this._image;
            }
            set
            {
                this._image = (System.Drawing.Image) value.Clone();
            }
        }

        public Color TransColor
        {
            get
            {
                return this._transColor;
            }
            set
            {
                this._transColor = value;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -