Able to draw a burned image

This commit is contained in:
Tim Young 2018-02-14 12:11:06 +00:00
parent 24413ec12e
commit d48db428c7

View File

@ -1078,13 +1078,13 @@ namespace EduNetworkBuilder
Network myNet = NB.GetNetwork();
myNet.Invalidate(Location);
}
if (MorphColor == Color.Empty && PowerOff == false)
Graphics.FromImage(BaseImage).DrawImage(MyImage, MyLocation.X, MyLocation.Y, Size, Size);
else
{
Image NewBMP = ColoredImage(MyImage);
Graphics.FromImage(BaseImage).DrawImage(NewBMP, MyLocation.X, MyLocation.Y, Size, Size);
}
Image tImage = MyImage;
if (MorphColor != Color.Empty || PowerOff == false)
tImage = ColoredImage(MyImage);
if (IsBurned)
tImage = BurnedImage(tImage);
Graphics.FromImage(BaseImage).DrawImage(tImage, MyLocation.X, MyLocation.Y, Size, Size);
if (DrawTitle != CaptionType.none)
{
int x = MyLocation.X + (Size / 2);