Move PartSheetLogo into Images subdirectory

This commit is contained in:
John Lewin 2018-08-07 12:48:57 -07:00
parent 237b646d80
commit 466b2c9dc9
2 changed files with 3 additions and 3 deletions

View file

@ -300,8 +300,7 @@ namespace MatterHackers.MatterControl
double currentlyPrintingHeightPixels = plateInventoryImage.Height - PageMarginMM.Top * PixelPerMM;
// TODO: Application should not save data back to StaticDataPath - use application data dir instead
string logoPathAndFile = "PartSheetLogo.png";
string logoPathAndFile = Path.Combine("Images", "PartSheetLogo.png");
if (AggContext.StaticData.FileExists(logoPathAndFile))
{
ImageBuffer logoImage = AggContext.StaticData.LoadImage(logoPathAndFile);
@ -312,7 +311,8 @@ namespace MatterHackers.MatterControl
currentlyPrintingHeightPixels -= PartPaddingPixels;
double underlineHeightMM = 1;
RectangleDouble lineBounds = new RectangleDouble(0, 0, plateInventoryImage.Width - PageMarginPixels.Left * 2, underlineHeightMM * PixelPerMM);
var lineBounds = new RectangleDouble(0, 0, plateInventoryImage.Width - PageMarginPixels.Left * 2, underlineHeightMM * PixelPerMM);
lineBounds.Offset(PageMarginPixels.Left, currentlyPrintingHeightPixels - lineBounds.Height);
plateGraphics.FillRectangle(lineBounds, Color.Black);

View file

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before After
Before After