Made asnyc image widget load through static data

This commit is contained in:
Lars Brubaker 2015-08-27 18:22:30 -07:00
parent 80dd0bcc0d
commit 92be8c6269
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ namespace MatterHackers.MatterControl
byte[] raw = e.Result;
Stream stream = new MemoryStream(raw);
ImageBuffer unScaledImage = new ImageBuffer(10, 10, 32, new BlenderBGRA());
ImageIO.LoadImageData(stream, unScaledImage);
StaticData.Instance.LoadImageData(stream, unScaledImage);
// If the source image (the one we downloaded) is more than twice as big as our dest image.
while (unScaledImage.Width > Image.Width * 2)
{