mirror of
https://github.com/leiurayer/downkyi.git
synced 2026-10-20 00:17:44 +00:00
优化代码
This commit is contained in:
@@ -59,7 +59,7 @@ namespace DownKyi.Core.Storage
|
||||
byte[] bytes = File.ReadAllBytes(cover);
|
||||
Imazen.WebP.Extern.LoadLibrary.LoadWebPOrFail();
|
||||
SimpleDecoder simpleDecoder = new SimpleDecoder();
|
||||
Bitmap bitmap = simpleDecoder.DecodeFromBytes(bytes, bytes.Length);
|
||||
Bitmap bitmap = simpleDecoder.DecodeFromBytes(bytes, bytes.LongLength);
|
||||
|
||||
Image thumbnail = bitmap.GetThumbnailImage(width, height, null, IntPtr.Zero);
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace DownKyi.Core.Storage
|
||||
byte[] bytes = File.ReadAllBytes(header);
|
||||
Imazen.WebP.Extern.LoadLibrary.LoadWebPOrFail();
|
||||
SimpleDecoder simpleDecoder = new SimpleDecoder();
|
||||
Bitmap bitmap = simpleDecoder.DecodeFromBytes(bytes, bytes.Length);
|
||||
Bitmap bitmap = simpleDecoder.DecodeFromBytes(bytes, bytes.LongLength);
|
||||
|
||||
Image thumbnail = bitmap.GetThumbnailImage(width, height, null, IntPtr.Zero);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user