Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
DataEditorX
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
聖園ミカ
DataEditorX
Commits
62205e1b
Commit
62205e1b
authored
Oct 12, 2015
by
keyongyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix image
parent
dbe4d268
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
DataEditorX/Core/Mse/MseMaker.cs
DataEditorX/Core/Mse/MseMaker.cs
+11
-5
DataEditorX/Properties/AssemblyInfo.cs
DataEditorX/Properties/AssemblyInfo.cs
+1
-1
No files found.
DataEditorX/Core/Mse/MseMaker.cs
View file @
62205e1b
...
...
@@ -732,8 +732,14 @@ public Card[] ReadCards(string set, bool repalceOld)
/// <param name="img"></param>
/// <returns></returns>
public
string
getImageCache
(
string
img
,
Card
card
){
if
(
cfg
.
width
<=
0
&&
cfg
.
height
<=
0
)
return
img
;
bool
isPendulum
=
card
!=
null
&&
card
.
IsType
(
CardType
.
TYPE_PENDULUM
);
if
(
isPendulum
){
if
(
cfg
.
pwidth
<=
0
&&
cfg
.
pheight
<=
0
)
return
img
;
}
else
{
if
(
cfg
.
width
<=
0
&&
cfg
.
height
<=
0
)
return
img
;
}
string
md5
=
MyUtils
.
GetMD5HashFromFile
(
img
);
if
(
MyUtils
.
Md5isEmpty
(
md5
)||
cfg
.
imagecache
==
null
){
//md5为空
...
...
@@ -742,9 +748,9 @@ public Card[] ReadCards(string set, bool repalceOld)
string
file
=
MyPath
.
Combine
(
cfg
.
imagecache
,
md5
);
if
(!
File
.
Exists
(
file
)){
//生成缓存
Bitmap
bmp
=
MyBitmap
.
readImage
(
file
);
Bitmap
bmp
=
MyBitmap
.
readImage
(
img
);
//缩放
if
(
card
!=
null
&&
card
.
IsType
(
CardType
.
TYPE_PENDULUM
)
){
if
(
isPendulum
){
bmp
=
MyBitmap
.
Zoom
(
bmp
,
cfg
.
pwidth
,
cfg
.
pheight
);
}
else
{
bmp
=
MyBitmap
.
Zoom
(
bmp
,
cfg
.
width
,
cfg
.
height
);
...
...
@@ -752,7 +758,7 @@ public Card[] ReadCards(string set, bool repalceOld)
//保存文件
MyBitmap
.
SaveAsJPEG
(
bmp
,
file
,
100
);
}
return
img
;
return
file
;
}
private
static
void
exportSetThread
(
object
obj
){
string
[]
args
=(
string
[])
obj
;
...
...
DataEditorX/Properties/AssemblyInfo.cs
View file @
62205e1b
...
...
@@ -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.3.5.
2
"
)]
[
assembly
:
AssemblyVersion
(
"2.3.5.
3
"
)]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment