优化读单

This commit is contained in:
wule committed 2026-10-19 15:13:18 +08:00
1 parent 8e0cc20649
commit b74e4598a7
3 files changed
+7 -3

No files matched your search

+1 -1
View File
@@ -484,7 +484,7 @@ namespace AllBase
if (width != null && height != null)
{
bitmap.DecodePixelWidth = width.Value;
bitmap.DecodePixelHeight = height.Value;
//bitmap.DecodePixelHeight = height.Value;
}
bitmap.CreateOptions = BitmapCreateOptions.PreservePixelFormat;
bitmap.CacheOption = BitmapCacheOption.OnLoad; // 或者使用 BitmapCacheOption.OnLoad 以减少内存使用