mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
make image created in hash freeze
This commit is contained in:
parent
fd59088528
commit
28b098cfb7
1 changed files with 3 additions and 1 deletions
|
|
@ -27,7 +27,9 @@ namespace Wox.Infrastructure.Image
|
|||
// enc2.Frames.Add(BitmapFrame.Create(tt));
|
||||
|
||||
var enc = new JpegBitmapEncoder();
|
||||
enc.Frames.Add(BitmapFrame.Create(image));
|
||||
var bitmapFrame = BitmapFrame.Create(image);
|
||||
bitmapFrame.Freeze();
|
||||
enc.Frames.Add(bitmapFrame);
|
||||
enc.Save(outStream);
|
||||
var byteArray = outStream.GetBuffer();
|
||||
using (var sha1 = new SHA1CryptoServiceProvider())
|
||||
|
|
|
|||
Loading…
Reference in a new issue