优化读单
This commit is contained in:
1 parent
8e0cc20649
commit
b74e4598a7
3 files changed
+7
-3
No files matched your search
@@ -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 以减少内存使用
|
||||
|
||||
Reference in new issue
Block a user