Commit d21714d9 authored by keyongyu's avatar keyongyu

2.4.0.2

parent 395acb21
......@@ -118,7 +118,7 @@ public static Bitmap Cut(Bitmap sourceBitmap, int StartX, int StartY, int cutWid
/// <param name="filename">保存路径</param>
/// <param name="quality">质量</param>
/// <returns>是否保存成功</returns>
public static bool SaveAsJPEG(Bitmap bitmap, string filename, int quality)
public static bool SaveAsJPEG(Bitmap bitmap, string filename, int quality=90)
{
if ( bitmap != null )
{
......@@ -134,17 +134,23 @@ public static bool SaveAsJPEG(Bitmap bitmap, string filename, int quality)
if ( codec.MimeType.IndexOf("jpeg") > -1 )
{
ici = codec;
break;
}
if ( quality < 0 || quality > 100 )
}
if (quality < 0 || quality > 100)
quality = 60;
EncoderParameters encoderParams = new EncoderParameters();
encoderParams.Param[0] = new EncoderParameter(Encoder.Quality, (long)quality);
if ( ici != null )
if (ici != null)
{
bitmap.Save(filename, ici, encoderParams);
bitmap.Dispose();
return true;
}
else
bitmap.Save(filename, ImageFormat.Jpeg);
{
return false;
}
return true;
}
return false;
}
......
......@@ -28,4 +28,4 @@
//
// You can specify all the values or you can use the default the Revision and
// Build Numbers by using the '*' as shown below:
[assembly: AssemblyVersion("2.4.0.1")]
[assembly: AssemblyVersion("2.4.0.2")]
★更新历史
2.4.0.2
修改导入游戏卡图
2.4.0.1
更新数据
2.4.0.0
......
[DataEditorX]2.4.0.1[DataEditorX]
[DataEditorX]2.4.0.2[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment)
......
No preview for this file type
......@@ -13,9 +13,9 @@
<!-- MSE language data/mse_xxx.txt -->
<add key="mse" value="Chinese-Simplified" />
<!-- Language data/cardinfo_xxxx.txt data/language_xxx.txt -->
<add key="language" value="Chinese" />
<add key="language" value="english" />
<!-- Check system language when running program first time -->
<add key="check_system_language" value="false" />
<add key="check_system_language" value="true" />
<!-- async load data -->
<add key="async" value="false" />
<!-- DataEditorX source code -->
......@@ -44,7 +44,7 @@
<add key="fontname" value="Consolas" />
<add key="fontsize" value="14.5" />
<!-- MSE path-->
<add key="mse_path" value="./MagicSetEditor2/mse.exe" />
<add key="mse_exprotpath" value="./exprot" />
<add key="mse_path" value="./MagicSetEditor2/mse.exe"/>
<add key="mse_exprotpath" value="./exprot"/>
</appSettings>
</configuration>
\ No newline at end of file
★更新历史
2.4.0.2
修改导入游戏卡图
2.4.0.1
更新数据
2.4.0.0
......
[DataEditorX]2.4.0.1[DataEditorX]
[DataEditorX]2.4.0.2[DataEditorX]
[URL]https://github.com/247321453/DataEditorX/raw/master/win32/win32.zip[URL]
★运行环境(Environment)
......
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