fix: loading state from open url
fix: some animation export error
This commit is contained in:
parent
8f11b3d722
commit
2469a5ba88
@ -317,7 +317,8 @@ namespace Pixiview.Illust
|
||||
{
|
||||
tmp[i] = new IllustDetailItem
|
||||
{
|
||||
Id = illustItem.Id
|
||||
Id = illustItem.Id,
|
||||
Loading = true
|
||||
};
|
||||
}
|
||||
Illusts = items = tmp;
|
||||
|
@ -455,12 +455,17 @@ namespace Pixiview.Utils
|
||||
{
|
||||
var cgImage = images[i].CGImage;
|
||||
var width = cgImage.Width;
|
||||
using (CGBitmapContext bitmapContext = new CGBitmapContext(pxdata, width, cgImage.Height,
|
||||
8, 4 * (width + width % 8), rgbColorSpace, CGImageAlphaInfo.NoneSkipFirst))
|
||||
var height = cgImage.Height;
|
||||
using (CGBitmapContext bitmapContext = new CGBitmapContext(
|
||||
pxdata, width, height,
|
||||
cgImage.BitsPerComponent,
|
||||
4 * (width + width % 4),
|
||||
rgbColorSpace,
|
||||
CGImageAlphaInfo.NoneSkipFirst))
|
||||
{
|
||||
if (bitmapContext != null)
|
||||
{
|
||||
bitmapContext.DrawImage(new CGRect(0, 0, cgImage.Width, cgImage.Height), cgImage);
|
||||
bitmapContext.DrawImage(new CGRect(0, 0, width, height), cgImage);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -482,7 +487,7 @@ namespace Pixiview.Utils
|
||||
lastTime = CMTime.Add(lastTime, frameTime);
|
||||
break;
|
||||
}
|
||||
Thread.Sleep(100);
|
||||
Thread.Sleep(16);
|
||||
}
|
||||
}
|
||||
writerInput.MarkAsFinished();
|
||||
|
Loading…
x
Reference in New Issue
Block a user