Commit 137090b1 authored by keyongyu's avatar keyongyu

2.2.6.3

parent 68024c07
...@@ -118,6 +118,8 @@ public static bool SaveAsJPEG(Bitmap bitmap, string filename, int quality) ...@@ -118,6 +118,8 @@ public static bool SaveAsJPEG(Bitmap bitmap, string filename, int quality)
return false; return false;
} }
#endregion #endregion
} }
} }
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Configuration; using System.Configuration;
using System.Drawing; using System.Drawing;
using System.Drawing.Imaging;
using System.IO; using System.IO;
using System.IO.Compression; using System.IO.Compression;
using System.Windows.Forms; using System.Windows.Forms;
...@@ -131,6 +132,7 @@ public void CutImages(string imgpath,bool isreplace) ...@@ -131,6 +132,7 @@ public void CutImages(string imgpath,bool isreplace)
imgSet.other_w,imgSet.other_h); imgSet.other_w,imgSet.other_h);
} }
MyBitmap.SaveAsJPEG(bmp, savejpg, imgSet.quilty); MyBitmap.SaveAsJPEG(bmp, savejpg, imgSet.quilty);
//bmp.Save(savejpg, ImageFormat.Png);
} }
} }
} }
...@@ -231,23 +233,25 @@ public string MSEImage ...@@ -231,23 +233,25 @@ public string MSEImage
File.Delete(setFile); File.Delete(setFile);
} }
public void ExportData(string cdbfile) public void ExportData(string zipname)
{ {
if(!File.Exists(cdbfile))
return;
int i=0; int i=0;
Card[] cards=DataBase.Read(cdbfile, false, ""); Card[] cards=cardlist;
if(cards == null || cards.Length == 0) if(cards == null || cards.Length == 0)
return; return;
int count=cards.Length; int count=cards.Length;
string path=Path.GetDirectoryName(cdbfile); string path=Path.GetDirectoryName(zipname);
string name=Path.GetFileNameWithoutExtension(cdbfile); string name=Path.GetFileNameWithoutExtension(zipname);
string zipname=MyPath.Combine(path, name+".zip"); string cdbfile=zipname+".cdb";
string readme=MyPath.Combine(path, name+".txt"); string readme=MyPath.Combine(path, name+".txt");
string deckydk=MyPath.Combine(path, "deck/"+name+".ydk"); string deckydk=MyPath.Combine(path, "deck/"+name+".ydk");
string pics=MyPath.Combine(path,"pics"); string pics=MyPath.Combine(path,"pics");
string thumb=MyPath.Combine(pics,"thumbnail"); string thumb=MyPath.Combine(pics,"thumbnail");
string script=MyPath.Combine(path,"script"); string script=MyPath.Combine(path,"script");
File.Delete(cdbfile);
DataBase.Create(cdbfile);
DataBase.CopyDB(cdbfile,false,cardlist);
if(File.Exists(zipname)) if(File.Exists(zipname))
File.Delete(zipname); File.Delete(zipname);
......
...@@ -1510,8 +1510,16 @@ void Menuitem_exportdataClick(object sender, EventArgs e) ...@@ -1510,8 +1510,16 @@ void Menuitem_exportdataClick(object sender, EventArgs e)
return; return;
if(isRun()) if(isRun())
return; return;
tasker.SetTask(MyTask.ExportData, null, nowCdbFile); using(SaveFileDialog dlg=new SaveFileDialog())
Run(LANG.GetMsg(LMSG.ExportData)); {
dlg.Filter="Zip|(*.zip|All Files(*.*)|*.*";
if(dlg.ShowDialog()==DialogResult.OK)
{
tasker.SetTask(MyTask.ExportData, getCardList(false), dlg.FileName);
Run(LANG.GetMsg(LMSG.ExportData));
}
}
} }
#endregion #endregion
......
...@@ -28,4 +28,4 @@ ...@@ -28,4 +28,4 @@
// //
// You can specify all the values or you can use the default the Revision and // You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below: // Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("2.2.6.2")] [assembly: AssemblyVersion("2.2.6.3")]
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<!-- DataEditorX update url--> <!-- DataEditorX update url-->
<add key="updateURL" value="https://github.com/247321453/DataEditorX/tree/master/win32/readme.txt" /> <add key="updateURL" value="https://github.com/247321453/DataEditorX/tree/master/win32/readme.txt" />
<!-- Cut Images Setting --> <!-- Cut Images Setting -->
<add key="image_quilty" value="96" /> <add key="image_quilty" value="100" />
<add key="image" value="44,64,177,254" /> <add key="image" value="44,64,177,254" />
<add key="image_other" value="25,54,128,128" /> <add key="image_other" value="25,54,128,128" />
<add key="image_xyz" value="24,51,128,128" /> <add key="image_xyz" value="24,51,128,128" />
......
[DataEditorX]2.2.6.2[DataEditorX] [DataEditorX]2.2.6.3[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL] [URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★文件关联 ★文件关联
...@@ -58,6 +58,8 @@ Ctrl+鼠标左键 跳转到函数定义 ...@@ -58,6 +58,8 @@ Ctrl+鼠标左键 跳转到函数定义
Ctrl+鼠标滑轮 缩放文字 Ctrl+鼠标滑轮 缩放文字
★更新历史 ★更新历史
2.2.6.3
导出数据:改为导出当前列表
2.2.6.2 2.2.6.2
导出MSE存档,支持png,jpg格式,支持密码,带0密码,卡名命名方式 导出MSE存档,支持png,jpg格式,支持密码,带0密码,卡名命名方式
2.2.6.1 2.2.6.1
......
No preview for this file type
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
<!-- DataEditorX update url--> <!-- DataEditorX update url-->
<add key="updateURL" value="https://github.com/247321453/DataEditorX/tree/master/win32/readme.txt" /> <add key="updateURL" value="https://github.com/247321453/DataEditorX/tree/master/win32/readme.txt" />
<!-- Cut Images Setting --> <!-- Cut Images Setting -->
<add key="image_quilty" value="96" /> <add key="image_quilty" value="100" />
<add key="image" value="44,64,177,254" /> <add key="image" value="44,64,177,254" />
<add key="image_other" value="25,54,128,128" /> <add key="image_other" value="25,54,128,128" />
<add key="image_xyz" value="24,51,128,128" /> <add key="image_xyz" value="24,51,128,128" />
......
# history # history
F:\games\ygopro\script\c255998.lua F:\games\ygopro\p.cdb
F:\games\ygopro\cards.cdb F:\games\ygopro\cards.cdb
\ No newline at end of file F:\games\ygopro\script\c255998.lua
\ No newline at end of file
[DataEditorX]2.2.6.2[DataEditorX] [DataEditorX]2.2.6.3[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL] [URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★文件关联 ★文件关联
...@@ -58,6 +58,8 @@ Ctrl+鼠标左键 跳转到函数定义 ...@@ -58,6 +58,8 @@ Ctrl+鼠标左键 跳转到函数定义
Ctrl+鼠标滑轮 缩放文字 Ctrl+鼠标滑轮 缩放文字
★更新历史 ★更新历史
2.2.6.3
导出数据:改为导出当前列表
2.2.6.2 2.2.6.2
导出MSE存档,支持png,jpg格式,支持密码,带0密码,卡名命名方式 导出MSE存档,支持png,jpg格式,支持密码,带0密码,卡名命名方式
2.2.6.1 2.2.6.1
......
No preview for this file type
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