Skip to content

Commit

Permalink
fix a error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr.Abc committed Sep 9, 2024
1 parent 56c0e2d commit 2213e84
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SPRView.Net.Lib/Class/Sprite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,13 @@ public static void Save(string[] files, Stream stream, int width, int height,
var path = files[i];
Image frame = Image.Load(path);
frame.Mutate(x => x.Resize(width, height));
while (frame.Frames.Count > 1)
do
{
image.Mutate(x => x.DrawImage(frame, new Point(0, height * bufferseek), 1.0f));
frame.Frames.RemoveFrame(0);
if (frame.Frames.Count > 1)
frame.Frames.RemoveFrame(0);
bufferseek++;
};
} while (frame.Frames.Count > 1);
frame.Dispose();
}
bool isAlphaTest = format == ISprite.SpriteFormat.AlphaTest;
Expand Down

0 comments on commit 2213e84

Please sign in to comment.