Commit 395acb21 authored by keyongyu's avatar keyongyu

压缩图片

parent 02d42677
......@@ -21,6 +21,7 @@ mse-set.txt
.metadata
bin/
tmp/
.vs/
*.tmp
*.bak
*.swp
......
......@@ -142,7 +142,7 @@ public static bool SaveAsJPEG(Bitmap bitmap, string filename, int quality)
if ( ici != null )
bitmap.Save(filename, ici, encoderParams);
else
bitmap.Save(filename);
bitmap.Save(filename, ImageFormat.Jpeg);
}
return true;
}
......
/*
* 由SharpDevelop创建。
* 用户: Acer
* 日期: 5月19 星期一
* 时间: 8:50
*
*/
using System;
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace System.Windows.Forms
namespace DataEditorX
{
public class DListView :ListView
{
public DListView()
{
SetStyle(ControlStyles.OptimizedDoubleBuffer |
ControlStyles.AllPaintingInWmPaint,
true);
UpdateStyles();
}
}
public class DFlowLayoutPanel : FlowLayoutPanel
{
public DFlowLayoutPanel()
......@@ -29,14 +15,4 @@ public DFlowLayoutPanel()
UpdateStyles();
}
}
public class DListBox : ListBox
{
public DListBox()
{
SetStyle(ControlStyles.OptimizedDoubleBuffer |
ControlStyles.AllPaintingInWmPaint,
true);
UpdateStyles();
}
}
}
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace DataEditorX
{
public class DListBox : ListBox
{
public DListBox()
{
SetStyle(ControlStyles.OptimizedDoubleBuffer |
ControlStyles.AllPaintingInWmPaint,
true);
UpdateStyles();
}
}
}
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows.Forms;
namespace DataEditorX
{
public class DListView : ListView
{
public DListView()
{
SetStyle(ControlStyles.OptimizedDoubleBuffer |
ControlStyles.AllPaintingInWmPaint,
true);
UpdateStyles();
}
}
}
......@@ -122,10 +122,10 @@ private void InitializeComponent()
this.tb_setcode3 = new System.Windows.Forms.TextBox();
this.tb_setcode4 = new System.Windows.Forms.TextBox();
this.lb_cardcode = new System.Windows.Forms.Label();
this.pl_category = new System.Windows.Forms.DFlowLayoutPanel();
this.pl_cardtype = new System.Windows.Forms.DFlowLayoutPanel();
this.lb_scripttext = new System.Windows.Forms.DListBox();
this.lv_cardlist = new System.Windows.Forms.DListView();
this.pl_category = new DFlowLayoutPanel();
this.pl_cardtype = new DFlowLayoutPanel();
this.lb_scripttext = new DListBox();
this.lv_cardlist = new DListView();
this.ch_cardcode = new System.Windows.Forms.ColumnHeader();
this.ch_cardname = new System.Windows.Forms.ColumnHeader();
this.mainMenu.SuspendLayout();
......@@ -1143,8 +1143,8 @@ private void InitializeComponent()
private System.Windows.Forms.Label lb_tiptexts;
private System.Windows.Forms.Label lb_categorys;
private System.Windows.Forms.Label lb_types;
private System.Windows.Forms.DFlowLayoutPanel pl_category;
private System.Windows.Forms.DFlowLayoutPanel pl_cardtype;
private DFlowLayoutPanel pl_category;
private DFlowLayoutPanel pl_cardtype;
private System.Windows.Forms.Button btn_serach;
private System.Windows.Forms.Button btn_reset;
private System.Windows.Forms.Button btn_lua;
......@@ -1169,7 +1169,7 @@ private void InitializeComponent()
private System.Windows.Forms.TextBox tb_pleft;
private System.Windows.Forms.Label lb_pleft_right;
private System.Windows.Forms.TextBox tb_edittext;
private System.Windows.Forms.DListBox lb_scripttext;
private DListBox lb_scripttext;
private System.Windows.Forms.TextBox tb_cardtext;
private System.Windows.Forms.ComboBox cb_setname3;
private System.Windows.Forms.ComboBox cb_setname4;
......@@ -1182,7 +1182,7 @@ private void InitializeComponent()
private System.Windows.Forms.ComboBox cb_cardattribute;
private System.Windows.Forms.ColumnHeader ch_cardname;
private System.Windows.Forms.ColumnHeader ch_cardcode;
private System.Windows.Forms.DListView lv_cardlist;
private DListView lv_cardlist;
private System.Windows.Forms.ToolStripMenuItem menuitem_checkupdate;
private System.Windows.Forms.ToolStripMenuItem menuitem_about;
private System.Windows.Forms.ToolStripMenuItem menuitem_help;
......
......@@ -73,7 +73,13 @@
<Compile Include="Common\StrUtil.cs" />
<Compile Include="Common\XMLReader.cs" />
<Compile Include="Config\YgoPath.cs" />
<Compile Include="Controls\DoubleContorl.cs">
<Compile Include="Controls\DFlowLayoutPanel.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Controls\DListBox.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Controls\DListView.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="Controls\FastColoredTextBoxEx.cs">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment