Make sure not to lock the files
This commit is contained in:
Родитель
5268ffbded
Коммит
98948aedc0
|
@ -132,7 +132,7 @@ namespace SkiaSharp.Tests
|
|||
{
|
||||
var path = Path.Combine(PathToImages, "color-wheel.png");
|
||||
|
||||
using (var managed = new FileStream(path, FileMode.Open))
|
||||
using (var managed = new FileStream(path, FileMode.Open, FileAccess.Read))
|
||||
using (var image = SKImage.FromEncodedData(managed))
|
||||
using (var surface = SKSurface.Create(new SKImageInfo(200, 200)))
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче