Skip to content

Commit

Permalink
修复了压缩图片后图片顺序错乱的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
NaughtDZ committed May 6, 2024
1 parent cca5cf6 commit 18f076a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ Public Class Form1
If TextBox3.Text >= 100 Then
tmpimages(i).Format = MagickFormat.Png24
tmpimages(i).Quality = 1
tmpimages(i).Write(TextBox1.Text & "\temp\" & i & ".png")
tmpimages(i).Write(TextBox1.Text & "\temp\" & i.ToString("D5") & ".png")
Else
tmpimages(i).Format = MagickFormat.Jpg
tmpimages(i).Quality = TextBox3.Text
tmpimages(i).Write(TextBox1.Text & "\temp\" & i & ".jpg")
tmpimages(i).Write(TextBox1.Text & "\temp\" & i.ToString("D5") & ".jpg")
End If

TrackBar1.Value += 1
Expand Down
Binary file removed 捕获.PNG
Binary file not shown.

0 comments on commit 18f076a

Please sign in to comment.