Ability to force center in back

Ability to turn off monotonic infill
This commit is contained in:
Lars Brubaker 2021-09-21 11:43:56 -07:00
parent c43ed1e73f
commit 4d7dfd1787
7 changed files with 18 additions and 6 deletions

View file

@ -382,12 +382,10 @@ namespace MatterHackers.MatterControl
double finalScale = imageToLoadInto.Width / (double)unScaledImage.Width;
imageToLoadInto.Allocate(imageToLoadInto.Width, (int)(unScaledImage.Height * finalScale), imageToLoadInto.Width * (imageToLoadInto.BitDepth / 8), imageToLoadInto.BitDepth);
imageToLoadInto.NewGraphics2D().Render(unScaledImage, 0, 0, 0, finalScale, finalScale);
imageToLoadInto.MarkImageChanged();
}
else
{
StaticData.Instance.LoadImageData(stream, imageToLoadInto);
imageToLoadInto.MarkImageChanged();
}
}
}