optimized performance

This commit is contained in:
NaBian committed 2020-02-02 14:37:39 +08:00
1 parent e1a07c0acc
commit e9a7123398
16 files changed
+239 -190

No files matched your search

@@ -85,6 +85,7 @@ namespace HandyControl.Data
var array = new byte[BytesPerPixelBgra32 * bitmapImage.PixelWidth * bitmapImage.PixelHeight];
var stride = BytesPerPixelBgra32 * bitmapImage.PixelWidth;
bitmapImage.CopyPixels(array, stride, 0);
bitmapImage.Freeze();
_transparencyMasks[(int)bitmapPart] =
new CachedBitmapInfo(
@@ -5,5 +5,7 @@
public SystemVersionInfo SystemVersionInfo { get; set; }
public string Lang { get; set; }
public int TimelineFrameRate { get; set; } = 60;
}
}