📄 eformstyle.cs
字号:
namespace Imps.Client.Pc
{
using Imps.Client.Utils;
using System;
using System.Drawing;
using System.Xml;
public class EFormStyle : EStyleBase
{
public Bitmap _backgroundB;
public Bitmap _backgroundBL;
public Bitmap _backgroundBR;
public Bitmap _backgroundC;
public Bitmap _backgroundL;
public Bitmap _backgroundR;
public Bitmap _backgroundT;
public Bitmap _backgroundTL;
public Bitmap _backgroundTR;
public int _maxHeight;
public int _maxWidth;
public int _minHeight;
public int _minWidth;
public Bitmap _resize;
public int _titleHeight;
private RGB _transParentColor;
public override void ChangeColor(int hue, double sat, double lum)
{
HSLFilter.ChangeImageColor(ref this._backgroundTL, hue, sat, lum, this.TransParentColor);
HSLFilter.ChangeImageColor(ref this._backgroundTR, hue, sat, lum, this.TransParentColor);
HSLFilter.ChangeImageColor(ref this._backgroundT, hue, sat, lum, this.TransParentColor);
HSLFilter.ChangeImageColor(ref this._backgroundL, hue, sat, lum, this.TransParentColor);
HSLFilter.ChangeImageColor(ref this._backgroundR, hue, sat, lum, this.TransParentColor);
HSLFilter.ChangeImageColor(ref this._backgroundC, hue, sat, lum, this.TransParentColor);
HSLFilter.ChangeImageColor(ref this._backgroundBL, hue, sat, lum, this.TransParentColor);
HSLFilter.ChangeImageColor(ref this._backgroundBR, hue, sat, lum, this.TransParentColor);
HSLFilter.ChangeImageColor(ref this._backgroundB, hue, sat, lum, this.TransParentColor);
HSLFilter.ChangeImageColor(ref this._resize, hue, sat, lum, this.TransParentColor);
base.ChangeColor(hue, sat, lum);
}
public override void Dispose()
{
base.Dispose();
this._backgroundT = null;
this._backgroundTL = null;
this._backgroundTR = null;
this._backgroundL = null;
this._backgroundR = null;
this._backgroundC = null;
this._backgroundB = null;
this._backgroundBL = null;
this._backgroundBR = null;
this._resize = null;
this._transParentColor = null;
this._minWidth = 0;
this._minHeight = 0;
this._maxWidth = 0;
this._maxHeight = 0;
}
protected override void LoadStyle(XmlElement elem)
{
base.LoadStyle(elem);
this._minWidth = 0;
this._minHeight = 0;
this._maxWidth = 0x1000;
this._maxHeight = 0x1000;
this._minWidth = base.GetIntegerAttribute(elem, "minWidth");
this._minHeight = base.GetIntegerAttribute(elem, "minHeight");
this._maxWidth = base.GetIntegerAttribute(elem, "maxWidth");
this._maxHeight = base.GetIntegerAttribute(elem, "maxHeight");
this._titleHeight = base.GetIntegerAttribute(elem, "titleHeight");
this.TransParentColor = base.GetRGBAttribute(elem, "transColor");
this._backgroundT = base.GetImageAttribute(elem, "backgroundT");
this._backgroundTL = base.GetImageAttribute(elem, "backgroundTL");
this._backgroundTR = base.GetImageAttribute(elem, "backgroundTR");
this._backgroundL = base.GetImageAttribute(elem, "backgroundL");
this._backgroundR = base.GetImageAttribute(elem, "backgroundR");
this._backgroundC = base.GetImageAttribute(elem, "backgroundC");
this._backgroundBL = base.GetImageAttribute(elem, "backgroundBL");
this._backgroundBR = base.GetImageAttribute(elem, "backgroundBR");
this._backgroundB = base.GetImageAttribute(elem, "backgroundB");
this._resize = base.GetImageAttribute(elem, "resize");
}
internal RGB TransParentColor
{
get
{
return this._transParentColor;
}
set
{
this._transParentColor = value;
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -