Making static data compile time and universal

This commit is contained in:
LarsBrubaker 2020-11-25 07:39:36 -08:00
parent 0fd5b7a0f9
commit 506f2b273f
141 changed files with 13671 additions and 355 deletions

View file

@ -312,9 +312,9 @@ namespace MatterHackers.MatterControl.Plugins
double currentlyPrintingHeightPixels = plateInventoryImage.Height - PageMarginMM.Top * PixelPerMM;
string logoPathAndFile = Path.Combine("Images", "PartSheetLogo.png");
if (AggContext.StaticData.FileExists(logoPathAndFile))
if (StaticData.Instance.FileExists(logoPathAndFile))
{
ImageBuffer logoImage = AggContext.StaticData.LoadImage(logoPathAndFile);
ImageBuffer logoImage = StaticData.Instance.LoadImage(logoPathAndFile);
currentlyPrintingHeightPixels -= logoImage.Height;
plateGraphics.Render(logoImage, (plateInventoryImage.Width - logoImage.Width) / 2, currentlyPrintingHeightPixels);
}