Making static data compile time and universal
This commit is contained in:
parent
0fd5b7a0f9
commit
506f2b273f
141 changed files with 13671 additions and 355 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue